fix error handling
This commit is contained in:
parent
477e5a5093
commit
c4d5ccf4e0
1 changed files with 1 additions and 1 deletions
|
@ -462,7 +462,7 @@ class ReceiverTester(Socks5, IdleObject):
|
||||||
self._send = self._sock.send
|
self._send = self._sock.send
|
||||||
self._recv = self._sock.recv
|
self._recv = self._sock.recv
|
||||||
except Exception as ee:
|
except Exception as ee:
|
||||||
errnum = ee[0]
|
errnum = ee.errno
|
||||||
# 56 is for freebsd
|
# 56 is for freebsd
|
||||||
if errnum in (errno.EINPROGRESS, errno.EALREADY, errno.EWOULDBLOCK):
|
if errnum in (errno.EINPROGRESS, errno.EALREADY, errno.EWOULDBLOCK):
|
||||||
# still trying to connect
|
# still trying to connect
|
||||||
|
|
Loading…
Add table
Reference in a new issue