mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
apparently gevent doesn4t import gevent.core now
This commit is contained in:
parent
cd3f9f076e
commit
0577135a76
@ -92,6 +92,7 @@ class GeventWorker(AsyncWorker):
|
||||
def init_process(self):
|
||||
#gevent 0.13 and older doesn't reinitialize dns for us after forking
|
||||
#here's the workaround
|
||||
import gevent.core
|
||||
gevent.core.dns_shutdown(fail_requests=1)
|
||||
gevent.core.dns_init()
|
||||
super(GeventWorker, self).init_process()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user