mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
let the VM close the sockets on exit
Closing sockets when stopping the arbiter was also closing unix sockets if any because they aren't attached to a specific process. So remove it and let the vm close them if needed. This change fix the reload of the binary. fix #476
This commit is contained in:
parent
8eda51267c
commit
208df4ddd9
@ -323,12 +323,6 @@ 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)
|
||||||
"""
|
"""
|
||||||
for l in self.LISTENERS:
|
|
||||||
try:
|
|
||||||
l.close()
|
|
||||||
except Exception:
|
|
||||||
pass
|
|
||||||
|
|
||||||
self.LISTENERS = []
|
self.LISTENERS = []
|
||||||
sig = signal.SIGQUIT
|
sig = signal.SIGQUIT
|
||||||
if not graceful:
|
if not graceful:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user