commit 5719f2429528b251f0da6e9c37c6edd5fbe6853e
parent 5bbf0408ce9233ada7f3de0bcd04a2892b351964
Author: Sheng <webmaster0115@gmail.com>
Date: Thu, 4 Jul 2019 22:29:59 +0800
Removed try block since this bug already fixed by tornado
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/webssh/handler.py b/webssh/handler.py
@@ -431,10 +431,7 @@ class WsockHandler(MixinHandler, tornado.websocket.WebSocketHandler):
worker = workers.get(worker_id)
if worker:
workers[worker_id] = None
- try:
- self.set_nodelay(True)
- except AssertionError: # tornado 6.00 bug
- pass
+ self.set_nodelay(True)
worker.set_handler(self)
self.worker_ref = weakref.ref(worker)
self.loop.add_handler(worker.fd, worker, IOLoop.READ)