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):
|
def handle(self):
|
||||||
self.greet()
|
self.greet()
|
||||||
|
|
||||||
while self.state & SessionState.ACTIVE:
|
try:
|
||||||
self.handle_command()
|
while self.state & SessionState.ACTIVE:
|
||||||
self.flush()
|
self.handle_command()
|
||||||
|
self.flush()
|
||||||
|
|
||||||
self.sock.close()
|
self.sock.close()
|
||||||
|
except BrokenPipeError:
|
||||||
|
pass
|
||||||
|
|
Loading…
Add table
Reference in a new issue