mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
check if the parent is alive
This commit is contained in:
parent
1f92511430
commit
b1bde15113
@ -194,6 +194,9 @@ class ThreadWorker(base.Worker):
|
|||||||
callback = key.data
|
callback = key.data
|
||||||
callback(key.fileobj)
|
callback(key.fileobj)
|
||||||
|
|
||||||
|
if not self.is_parent_alive():
|
||||||
|
break
|
||||||
|
|
||||||
# hanle keepalive timeouts
|
# hanle keepalive timeouts
|
||||||
self.murder_keepalived()
|
self.murder_keepalived()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user