Commit 71c84880 authored by ibuler's avatar ibuler

[Update] 吸怪异常捕捉

parent 50f54aa7
......@@ -125,8 +125,8 @@ class Client(object):
def send(self, b):
try:
return self.chan.send(b)
except (OSError, EOFError) as e:
logger.error('Send to client <{}> error: {}'.format(self, e))
except (OSError, EOFError, socket.error) as e:
logger.error('Send to client {} error: {}'.format(self, e))
return 0
def send_unicode(self, s):
......
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