Commit 20b5ab83 authored by ibuler's avatar ibuler

[Update] 修改bug

parent ab8d02d3
......@@ -18,8 +18,8 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__))
logger = get_logger(__file__)
# eventlet.monkey_patch()
# hub_prevent_multiple_readers(False)
eventlet.monkey_patch()
hub_prevent_multiple_readers(False)
class BaseNamespace(Namespace):
......@@ -241,8 +241,8 @@ class HttpServer:
'LOGIN_URL': '/login'
}
init_kwargs = dict(
# async_mode="eventlet",
async_mode="threading",
async_mode="eventlet",
# async_mode="threading",
ping_timeout=20,
ping_interval=10
)
......
......@@ -9,9 +9,7 @@ logger = get_logger(__file__)
class TaskHandler:
routes = None
def init(self):
def __init__(self):
self.routes = {
'kill_session': self.handle_kill_session
}
......
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