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 b630116f3314c51e6ecac73d7feacbf0bad9957b
parent 544461a6176940c953e4c36f87af9477040ee157
Author: Sheng <webmaster0115@gmail.com>
Date:   Tue, 12 Mar 2019 23:47:06 +0800

Use try block to bypass the error

Diffstat:
Mwebssh/handler.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/webssh/handler.py b/webssh/handler.py @@ -405,8 +405,10 @@ class WsockHandler(MixinHandler, tornado.websocket.WebSocketHandler): worker = workers.get(worker_id) if worker: workers[worker_id] = None - if self.stream: + try: self.set_nodelay(True) + except AssertionError: # tornado 6.00 bug + pass worker.set_handler(self) self.worker_ref = weakref.ref(worker) self.loop.add_handler(worker.fd, worker, IOLoop.READ)