Browse Source

Change fast shutdown timeout to 0

This used to have problems with older CherryPy versions, but the
current one seems to handle it just fine.
tags/nilmdb-2.0.0
Jim Paris 2 years ago
parent
commit
699de7b11f
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      nilmdb/server/server.py

+ 1
- 2
nilmdb/server/server.py View File

@@ -474,8 +474,7 @@ class Server(object):
# Shutdowns normally wait for clients to disconnect. To speed
# up tests, set fast_shutdown = True
if fast_shutdown:
# Setting timeout to 0 triggers os._exit(70) at shutdown, grr...
cherrypy.server.shutdown_timeout = 0.01
cherrypy.server.shutdown_timeout = 0
else:
cherrypy.server.shutdown_timeout = 5



Loading…
Cancel
Save