Commit 4a4e268c authored by ibuler's avatar ibuler

[Update] 修改说明

parent d091e0ce
...@@ -92,12 +92,12 @@ class SSHServer: ...@@ -92,12 +92,12 @@ class SSHServer:
t.daemon = True t.daemon = True
t.start() t.start()
transport.close() transport.close()
except (paramiko.SSHException, socket.timeout): except paramiko.SSHException as e:
logger.warning("SSH negotiation failed") logger.warning("SSH negotiation failed: {}".format(e))
except EOFError as e: except EOFError as e:
logger.warning("Handle connection EOF Error: {}".format(e)) logger.warning("Handle connection EOF Error: {}".format(e))
except Exception as e: except Exception as e:
logger.error("Handle connection unexpect error occur: ".format(e)) logger.error("Unexpect error occur on handle connection: {}".format(e))
finally: finally:
Connection.remove_connection(connection.id) Connection.remove_connection(connection.id)
sock.close() sock.close()
......
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