Ignore BrokenPipeError
This commit is contained in:
parent
1bb3c21122
commit
6038746439
1 changed files with 7 additions and 4 deletions
|
@ -714,8 +714,11 @@ class Session():
|
|||
def handle(self):
|
||||
self.greet()
|
||||
|
||||
try:
|
||||
while self.state & SessionState.ACTIVE:
|
||||
self.handle_command()
|
||||
self.flush()
|
||||
|
||||
self.sock.close()
|
||||
except BrokenPipeError:
|
||||
pass
|
||||
|
|
Loading…
Add table
Reference in a new issue