Commit 50f54aa7 authored by ibuler's avatar ibuler

[Update] client send

parent 4661081f
......@@ -125,7 +125,7 @@ class Client(object):
def send(self, b):
try:
return self.chan.send(b)
except Exception as e:
except (OSError, EOFError) as e:
logger.error('Send to client <{}> error: {}'.format(self, e))
return 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment