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
c84b74957b
commit
e78d19019d
@ -95,6 +95,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