Windows socket typo
This commit is contained in:
parent
f499a3b1d8
commit
6c907e2046
|
@ -118,7 +118,7 @@ class receiveDataThread(threading.Thread):
|
|||
except socket.error as err:
|
||||
if err.errno in (errno.EAGAIN, errno.EWOULDBLOCK) or \
|
||||
(sys.platform.startswith('win') and \
|
||||
err.errno in (errno.WSAEWOULDBLOCK)):
|
||||
err.errno == errno.WSAEWOULDBLOCK):
|
||||
select.select([self.sslSock if isSSL else self.sock], [], [], 10)
|
||||
logger.debug('sock.recv retriable error')
|
||||
continue
|
||||
|
|
|
@ -100,7 +100,7 @@ class sendDataThread(threading.Thread):
|
|||
except socket.error as e:
|
||||
if e.errno in (errno.EAGAIN, errno.EWOULDBLOCK) or \
|
||||
(sys.platform.startswith('win') and \
|
||||
e.errno in (errno.WSAEWOULDBLOCK)):
|
||||
e.errno == errno.WSAEWOULDBLOCK):
|
||||
select.select([], [self.sslSock if isSSL else self.sock], [], 10)
|
||||
logger.debug('sock.recv retriable error')
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue
Block a user