3
0
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:
James Lu 2018-03-07 18:31:43 -08:00
parent 8f9b56e9d9
commit ccc9f8e5c8

View File

@ -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