fixes large WCPU footprint under freebsd. fixes #1963
This commit is contained in:
parent
c051cc1a76
commit
03235e2809
1 changed files with 2 additions and 1 deletions
|
@ -253,7 +253,8 @@ class HostTester(Socks5, IdleObject):
|
||||||
self._recv=self._sock.recv
|
self._recv=self._sock.recv
|
||||||
except Exception, ee:
|
except Exception, ee:
|
||||||
(errnum, errstr) = 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
|
# still trying to connect
|
||||||
return
|
return
|
||||||
# win32 needs this
|
# win32 needs this
|
||||||
|
|
Loading…
Add table
Reference in a new issue