mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
merge duplicate EventletWorker.init_process method (fixes #657)
This commit is contained in:
parent
10fadf3d4a
commit
bbcb74fdca
@ -47,6 +47,7 @@ class EventletWorker(AsyncWorker):
|
|||||||
|
|
||||||
def init_process(self):
|
def init_process(self):
|
||||||
hubs.use_hub()
|
hubs.use_hub()
|
||||||
|
self.patch()
|
||||||
super(EventletWorker, self).init_process()
|
super(EventletWorker, self).init_process()
|
||||||
|
|
||||||
def timeout_ctx(self):
|
def timeout_ctx(self):
|
||||||
@ -87,8 +88,3 @@ class EventletWorker(AsyncWorker):
|
|||||||
if te != t:
|
if te != t:
|
||||||
raise
|
raise
|
||||||
[a.kill() for a in acceptors]
|
[a.kill() for a in acceptors]
|
||||||
|
|
||||||
def init_process(self):
|
|
||||||
# monkey patch here
|
|
||||||
self.patch()
|
|
||||||
super(EventletWorker, self).init_process()
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user