webssh

Web based ssh client https://github.com/huashengdun/webssh webssh.huashengdun.org/
git clone http://git.hanabi.in/repos/webssh.git
Log | Files | Refs | README | LICENSE

commit 105c1f62ee7a5ea0436014949213fd2b7b603fa2
parent 9b38d111f4263267c1922ffcc89c778be98d1e46
Author: Sheng <webmaster0115@gmail.com>
Date:   Sun, 26 Aug 2018 20:13:11 +0800

Close handler with reason why worker closed

Diffstat:
Mwebssh/worker.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/webssh/worker.py b/webssh/worker.py @@ -94,11 +94,11 @@ class Worker(object): def close(self, reason=None): logging.info( - 'Closing worker {} with reason {}'.format(self.id, reason) + 'Closing worker {} with reason: {}'.format(self.id, reason) ) if self.handler: self.loop.remove_handler(self.fd) - self.handler.close() + self.handler.close(reason=reason) self.chan.close() self.ssh.close() logging.info('Connection to {}:{} lost'.format(*self.dst_addr))