changeset b50523d2656e in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=b50523d2656e description: improve connect to remote host in zeroconf under windows
diffstat:
src/common/zeroconf/client_zeroconf.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 0c2c00f6df67 -r b50523d2656e src/common/zeroconf/client_zeroconf.py --- a/src/common/zeroconf/client_zeroconf.py Sun Aug 21 19:34:37 2011 +0200 +++ b/src/common/zeroconf/client_zeroconf.py Sun Aug 21 19:38:20 2011 +0200 @@ -458,7 +458,10 @@ self._sock.setblocking(False) except Exception, ee: (errnum, errstr) = ee - if errnum in (errno.EINPROGRESS, errno.EALREADY, errno.EWOULDBLOCK): + errors = (errno.EINPROGRESS, errno.EALREADY, errno.EWOULDBLOCK) + if 'WSAEINVAL' in errno.__dict__: + errors += (errno.WSAEINVAL,) + if errnum in errors: return # win32 needs this elif errnum not in (0, 10056, errno.EISCONN) or self.state != 0: