Commit 778493ed authored by ibuler's avatar ibuler

[Update] client关闭

parent a56f5eaf
...@@ -123,7 +123,10 @@ class Client(object): ...@@ -123,7 +123,10 @@ class Client(object):
return self.chan.fileno() return self.chan.fileno()
def send(self, b): def send(self, b):
return self.chan.send(b) try:
return self.chan.send(b)
except EOFError:
return 0
def send_unicode(self, s): def send_unicode(self, s):
b = s.encode() b = s.encode()
......
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