expose websocket protocol arguments

This commit is contained in:
Yun Xu
2018-02-09 20:44:02 -08:00
parent 224b56bd3a
commit 0fe0796870
3 changed files with 7 additions and 0 deletions

View File

@@ -36,6 +36,8 @@ class Config(dict):
self.KEEP_ALIVE_TIMEOUT = 5 # 5 seconds
self.WEBSOCKET_MAX_SIZE = 2 ** 20 # 1 megabytes
self.WEBSOCKET_MAX_QUEUE = 32
self.WEBSOCKET_READ_LIMIT = 2 ** 16
self.WEBSOCKET_WRITE_LIMIT = 2 ** 16
self.GRACEFUL_SHUTDOWN_TIMEOUT = 15.0 # 15 sec
if load_env: