Tweak exception handling
This commit is contained in:
parent
ff19d88c3e
commit
71fcf0960b
2 changed files with 2 additions and 4 deletions
|
@ -62,7 +62,7 @@ class Server():
|
|||
|
||||
try:
|
||||
session.handle()
|
||||
except ssl.SSLEOFError as e:
|
||||
except (ssl.SSLEOFError, ssl.SSLError):
|
||||
pass
|
||||
|
||||
thread = threading.Thread(target=spawn)
|
||||
|
|
|
@ -875,7 +875,5 @@ class Session(Connection):
|
|||
self.handle_command()
|
||||
|
||||
self.sock.close()
|
||||
except BrokenPipeError:
|
||||
pass
|
||||
except ConnectionResetError:
|
||||
except (BrokenPipeError, ConnectionResetError):
|
||||
pass
|
||||
|
|
Loading…
Add table
Reference in a new issue