Skip to content

Commit

Permalink
better support for new and old gevent dns
Browse files Browse the repository at this point in the history
Thanks @denik. Fixes benoitc#336.
  • Loading branch information
tilgovi committed Apr 23, 2012
1 parent 0459948 commit dd948d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gunicorn/workers/ggevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dd948d6

Please sign in to comment.