From 75670597e90ce09da68a2697e860b4ebab2291bc Mon Sep 17 00:00:00 2001 From: Thomas Keck Date: Fri, 12 Mar 2010 23:57:30 +0100 Subject: Remove Keep Alive 1 --- proxy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proxy.py b/proxy.py index d8ba754..31a2936 100755 --- a/proxy.py +++ b/proxy.py @@ -9,7 +9,7 @@ except ImportError: ENDPOINTS = [ ('10.2.2.11', 8888), - # ('10.3.1.2', 8888), + ('10.3.1.2', 8888), # ('10.1.1.156', 8888), ] @@ -55,10 +55,10 @@ class Fetcher(asynchat.async_chat): else: self.pos = self.range[0] self.send("GET http://%s:%s%s HTTP/1.0\r\n" % ( self.url.hostname, self.url.port or 80, self.url.path )) - #XXX self.header + #XXX self.header, and keep alive if supported self.send("Range: bytes=%s-%s\r\n" % (self.range[0], self.range[1])) - self.send("Keep-Alive: 300\r\n") - self.send("Connection: keep-alive\r\n") + #self.send("Keep-Alive: 300\r\n") + #self.send("Connection: keep-alive\r\n") self.send("\r\n") self.start_time = time.time() -- cgit v1.2.1