Unverified Commit d7c0d406 authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #158 from jumpserver/dev

[Update] 修改说明
parents 3120cdb5 4a4e268c
...@@ -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