Merge pull request #815 from yunstanford/master

add graceful timeout when shutdown
This commit is contained in:
Raphael Deem
2017-07-08 11:31:37 -07:00
committed by GitHub
5 changed files with 82 additions and 4 deletions

View File

@@ -127,6 +127,7 @@ class Config(dict):
self.KEEP_ALIVE = keep_alive
self.WEBSOCKET_MAX_SIZE = 2 ** 20 # 1 megabytes
self.WEBSOCKET_MAX_QUEUE = 32
self.GRACEFUL_SHUTDOWN_TIMEOUT = 15.0 # 15 sec
if load_env:
self.load_environment_vars()