mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
parent
04599487f4
commit
dd948d6f46
@ -20,7 +20,6 @@ except ImportError:
|
||||
from gevent.pool import Pool
|
||||
from gevent.server import StreamServer
|
||||
from gevent import pywsgi
|
||||
from gevent import core
|
||||
|
||||
import gunicorn
|
||||
from gunicorn.workers.async import AsyncWorker
|
||||
@ -88,7 +87,7 @@ class GeventWorker(AsyncWorker):
|
||||
except gevent.GreenletExit:
|
||||
pass
|
||||
|
||||
if hasattr(gevent.core, 'dns_shutdown'):
|
||||
if gevent.version_info[0] == 0:
|
||||
|
||||
def init_process(self):
|
||||
#gevent 0.13 and older doesn't reinitialize dns for us after forking
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user