Permalink
Browse files

better support for new and old gevent dns

Thanks @denik. Fixes #336.
  • Loading branch information...
1 parent 0459948 commit dd948d6f465c3940fa1299a140216e75bf18f2df @tilgovi tilgovi committed Apr 23, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 gunicorn/workers/ggevent.py
@@ -20,7 +20,6 @@
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 @@ def handle_request(self, *args):
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

0 comments on commit dd948d6

Please sign in to comment.