mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
don't patch dns for now until it's fixed upstream. Create strange
behaviour with httplib and urllib2. spotted by @greut on irc, thanks!
This commit is contained in:
parent
af4ee69eae
commit
2e40f48d05
@ -60,7 +60,6 @@ class KeepaliveWorker(Worker):
|
||||
self.init_sock(client)
|
||||
while True:
|
||||
req = KeepaliveRequest(client, addr, self.address, self.conf)
|
||||
|
||||
try:
|
||||
environ = req.read()
|
||||
if not environ or not req.parser.headers:
|
||||
|
||||
@ -37,7 +37,7 @@ class GEventArbiter(arbiter.Arbiter):
|
||||
@classmethod
|
||||
def setup(cls):
|
||||
from gevent import monkey
|
||||
monkey.patch_all()
|
||||
monkey.patch_all(dns=False)
|
||||
|
||||
def init_worker(self, worker_age, pid, listener, app, timeout, conf):
|
||||
return GEventWorker(worker_age, pid, listener, app, timeout, conf)
|
||||
|
||||
@ -56,4 +56,4 @@ class Response(object):
|
||||
if not self.headers_sent:
|
||||
self.send_headers()
|
||||
if self.chunked:
|
||||
write_chunk(self.socket, "")
|
||||
write_chunk(self.socket, "")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user