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:
|
try:
|
||||||
session.handle()
|
session.handle()
|
||||||
except ssl.SSLEOFError as e:
|
except (ssl.SSLEOFError, ssl.SSLError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
thread = threading.Thread(target=spawn)
|
thread = threading.Thread(target=spawn)
|
||||||
|
|
|
@ -875,7 +875,5 @@ class Session(Connection):
|
||||||
self.handle_command()
|
self.handle_command()
|
||||||
|
|
||||||
self.sock.close()
|
self.sock.close()
|
||||||
except BrokenPipeError:
|
except (BrokenPipeError, ConnectionResetError):
|
||||||
pass
|
|
||||||
except ConnectionResetError:
|
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Reference in a new issue