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.
This commit is contained in:
parent
ea67e45be9
commit
699de7b11f
|
@ -474,8 +474,7 @@ class Server(object):
|
||||||
# Shutdowns normally wait for clients to disconnect. To speed
|
# Shutdowns normally wait for clients to disconnect. To speed
|
||||||
# up tests, set fast_shutdown = True
|
# up tests, set fast_shutdown = True
|
||||||
if fast_shutdown:
|
if fast_shutdown:
|
||||||
# Setting timeout to 0 triggers os._exit(70) at shutdown, grr...
|
cherrypy.server.shutdown_timeout = 0
|
||||||
cherrypy.server.shutdown_timeout = 0.01
|
|
||||||
else:
|
else:
|
||||||
cherrypy.server.shutdown_timeout = 5
|
cherrypy.server.shutdown_timeout = 5
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user