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:
benoitc 2010-04-14 11:27:55 +02:00
parent af4ee69eae
commit 2e40f48d05
3 changed files with 2 additions and 3 deletions

View File

@ -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:

View File

@ -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)

View File

@ -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, "")