fixes large WCPU footprint under freebsd. fixes #1963

This commit is contained in:
Yann Leboulanger 2007-08-29 15:42:37 +00:00
parent c051cc1a76
commit 03235e2809
1 changed files with 2 additions and 1 deletions

View File

@ -253,7 +253,8 @@ class HostTester(Socks5, IdleObject):
self._recv=self._sock.recv
except Exception, ee:
(errnum, errstr) = ee
if errnum in (errno.EINPROGRESS, errno.EALREADY, errno.EWOULDBLOCK):
# 56 is for freebsd
if errnum in (errno.EINPROGRESS, errno.EALREADY, errno.EWOULDBLOCK, 56):
# still trying to connect
return
# win32 needs this