always need ssl ?

31 views
Skip to first unread message

Bino Oetomo

unread,
May 23, 2014, 5:15:59 AM5/23/14
to sna...@googlegroups.com
Dear All

Today I try to make openwrt package of SnakeMQ

1. First : I have to switch setup.py from using setuptools to use distutils ... it's easy and done.

2. Second : SSL problem.
My script not using SSL link, but link.py still ask for it.
Problem is ... by-default python came to openwrt without ssl.

I try to remove ssl from link.py on some place, but I still got :

2014-05-23 08:48:54,080 snakemq.link DEBUG recv 1fd7 len=9
Traceback (most recent call last):
 
File "./xcache", line 44, in <module>
    s
.loop()
 
File "/usr/lib/python2.7/site-packages/snakemq/link.py", line 423, in loop
    is_event
= len(self.poll(poll_timeout))
 
File "/usr/lib/python2.7/site-packages/snakemq/link.py", line 728, in poll
   
self.handle_fd_mask(fd, mask)
 
File "/usr/lib/python2.7/site-packages/snakemq/link.py", line 712, in handle_fd_mask
   
self.handle_sock_io(fd, sock, mask)
 
File "/usr/lib/python2.7/site-packages/snakemq/link.py", line 689, in handle_sock_io
   
self.handle_recv(sock)
 
File "/usr/lib/python2.7/site-packages/snakemq/link.py", line 621, in handle_recv
   
self.on_recv(conn_id, fragment)
 
File "/usr/lib/python2.7/site-packages/snakemq/callbacks.py", line 31, in __call__
    callback
(*args, **kwargs)
 
File "/usr/lib/python2.7/site-packages/snakemq/packeter.py", line 157, in _on_recv
    recv_buffer
= self._connections[conn_id].recv_buffer
KeyError: '1fd7'


So, is there any safe way to completely remove the need for ssl ?

Sincerely
-bino-

David Siroky

unread,
May 23, 2014, 9:16:36 AM5/23/14
to sna...@googlegroups.com
link.py imports ssl statically. I'll modify it. Watch github.
The exception trace you sent looks more like a bug other then anything related
to SSL. I'll investigate if it will appear later again.

David

On 23.5.2014 11:15, Bino Oetomo wrote:
> Dear All
>
> Today I try to make openwrt package of SnakeMQ
>
> 1. First : I have to switch setup.py from using setuptools to use distutils ...
> it's easy and done.
>
> 2. Second : SSL problem.
> My script not using SSL link, but link.py still ask for it.
> Problem is ... by-default python came to openwrt without ssl.
>
> I try to remove ssl from link.py on some place, but I still got :
>
> |
> 2014-05-2308:48:54,080snakemq.link DEBUG recv 1fd7len=9
> Traceback(most recent call last):
> File"./xcache",line 44,in<module>
> s.loop()
> File"/usr/lib/python2.7/site-packages/snakemq/link.py",line 423,inloop
> is_event =len(self.poll(poll_timeout))
> File"/usr/lib/python2.7/site-packages/snakemq/link.py",line 728,inpoll
> self.handle_fd_mask(fd,mask)
> File"/usr/lib/python2.7/site-packages/snakemq/link.py",line 712,inhandle_fd_mask
> self.handle_sock_io(fd,sock,mask)
> File"/usr/lib/python2.7/site-packages/snakemq/link.py",line 689,inhandle_sock_io
> self.handle_recv(sock)
> File"/usr/lib/python2.7/site-packages/snakemq/link.py",line 621,inhandle_recv
> self.on_recv(conn_id,fragment)
> File"/usr/lib/python2.7/site-packages/snakemq/callbacks.py",line 31,in__call__
> callback(*args,**kwargs)
> File"/usr/lib/python2.7/site-packages/snakemq/packeter.py",line 157,in_on_recv
> recv_buffer =self._connections[conn_id].recv_buffer

Bino Oetomo

unread,
May 23, 2014, 9:41:15 PM5/23/14
to sna...@googlegroups.com

Dear David


On Friday, May 23, 2014 8:16:36 PM UTC+7, David Široký wrote:
link.py imports ssl statically. I'll modify it. Watch github.
The exception trace you sent looks more like a bug other then anything related
to SSL. I'll investigate if it will appear later again.

David

 
Work like a charm !
I Tested it.

Sincerely
-bino-
Reply all
Reply to author
Forward
0 new messages