mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
IRCNetwork: also catch ssl.SSLWantReadError and ssl.SSLWantWriteError
This commit is contained in:
parent
8f9b56e9d9
commit
ccc9f8e5c8
@ -1554,7 +1554,7 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils):
|
||||
|
||||
try:
|
||||
data = self._socket.recv(2048)
|
||||
except BlockingIOError:
|
||||
except (BlockingIOError, ssl.SSLWantReadError, ssl.SSLWantWriteError):
|
||||
log.debug('(%s) No data to read, trying again later...', self.name)
|
||||
if self._aborted.wait(self.SOCKET_REPOLL_WAIT):
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user