mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
when stopping the arbiter, close the listener asap
setting self.LISTENER to None is not enough because self.WORKERS also have references to it
This commit is contained in:
parent
388612f628
commit
32862a694a
@ -316,6 +316,10 @@ class Arbiter(object):
|
|||||||
:attr graceful: boolean, If True (the default) workers will be
|
:attr graceful: boolean, If True (the default) workers will be
|
||||||
killed gracefully (ie. trying to wait for the current connection)
|
killed gracefully (ie. trying to wait for the current connection)
|
||||||
"""
|
"""
|
||||||
|
try:
|
||||||
|
self.LISTENER.close()
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
self.LISTENER = None
|
self.LISTENER = None
|
||||||
sig = signal.SIGQUIT
|
sig = signal.SIGQUIT
|
||||||
if not graceful:
|
if not graceful:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user