fritzy/SleekXMPP — Issue #142: Socket errors not triggered
Author: rhcarvalho
Created: 2012-01-29 01:23:45+00:00
State: open

As discussed here: http://groups.google.com/group/sleekxmpp-discussion/browse_thread/thread/5da0aa9e469868e0/da786b85bf734192

It is still broken on develop.

Lance said:

> The event queue does not start running until after connection and
> process() is called.
>
> So I will set that event to direct=True

I found 6 occurences where the event happens. At least the first one, on line 457, is necessary to be direct.
I am not sure whether the others also need direct=True, thus I am not providing a patch.

SleekXMPP\sleekxmpp\xmlstream\xmlstream.py (6 hits)
Line 457: self.event('socket_error', serr)
Line 510: self.event('socket_error', serr)
Line 581: self.event('socket_error', serr)
Line 1095: self.event('socket_error', serr)
Line 1196: self.event('socket_error', serr)
Line 1448: self.event('socket_error', serr)