Add websocket max_size and max_queue configuration

This commit is contained in:
messense
2017-05-26 11:11:26 +08:00
parent 23cb39b557
commit 0024edbbb9
4 changed files with 20 additions and 6 deletions

View File

@@ -696,7 +696,9 @@ class Sanic:
'loop': loop,
'register_sys_signals': register_sys_signals,
'backlog': backlog,
'has_log': has_log
'has_log': has_log,
'websocket_max_size': self.config.WEBSOCKET_MAX_SIZE,
'websocket_max_queue': self.config.WEBSOCKET_MAX_QUEUE
}
# -------------------------------------------- #