Made WsockHandler more robust

This commit is contained in:
Sheng
2018-05-26 15:51:53 +08:00
parent 2c36c38653
commit a893507946
3 changed files with 35 additions and 4 deletions
+2 -1
View File
@@ -114,7 +114,8 @@ def run_ssh_server(port=2200, running=True):
chan.send('\r\n\r\nWelcome!\r\n\r\n')
if username == 'bar':
print(chan.recv(1024))
msg = chan.recv(1024)
chan.send(msg)
chan.close()
t.close()