spartanbits / SleekXMPP

Python 2.6+/3.1+ XMPP Library
http://groups.google.com/group/sleekxmpp-discussion
Other
2 stars 1 forks source link

SleekXMPP filesocket library doesn't work with gevent #3

Closed pvicente closed 12 years ago

pvicente commented 12 years ago

In python < 3.0 SleekXMPP has their own FileSocket based on native socket of python system. It inherited from socket._socketobject who is not patched by monkey patch and reads are blocking reads.

Solution is to inherit from gevent.socket and remove call to wait_read due to it is done by gevent socket.

pvicente commented 12 years ago

Resolved in #2. Socket26 inherited from socket.socket who is patched by gevent library and is an alias of _socketobject when gevent is not applied.