commit c70117e590137fe39a27653763edb8a279833336
parent 330145484d6d3eed2783154e337917bd89aa7140
Author: Sheng <webmaster0115@gmail.com>
Date: Fri, 27 Apr 2018 14:41:08 +0800
Updated sshserver.py
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/tests/sshserver.py b/tests/sshserver.py
@@ -115,7 +115,10 @@ 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))
+
chan.close()
+ t.close()
+ client.close()
try:
sock.close()