Handle OSError exception during data sending
This commit is contained in:
parent
f74cb829fc
commit
6a78dd0490
|
@ -144,7 +144,7 @@ class Connection(threading.Thread):
|
||||||
self.buffer_send = self.buffer_send[amount:]
|
self.buffer_send = self.buffer_send[amount:]
|
||||||
except (BlockingIOError, ssl.SSLWantWriteError):
|
except (BlockingIOError, ssl.SSLWantWriteError):
|
||||||
pass
|
pass
|
||||||
except (BrokenPipeError, ConnectionResetError, ssl.SSLError) as e:
|
except (BrokenPipeError, ConnectionResetError, ssl.SSLError, OSError) as e:
|
||||||
logging.debug('Disconnecting from {}:{}. Reason: {}'.format(self.host_print, self.port, e))
|
logging.debug('Disconnecting from {}:{}. Reason: {}'.format(self.host_print, self.port, e))
|
||||||
self.status = 'disconnecting'
|
self.status = 'disconnecting'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user