mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-20 07:20:59 +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:
|
try:
|
||||||
data = self._socket.recv(2048)
|
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)
|
log.debug('(%s) No data to read, trying again later...', self.name)
|
||||||
if self._aborted.wait(self.SOCKET_REPOLL_WAIT):
|
if self._aborted.wait(self.SOCKET_REPOLL_WAIT):
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user