diff options
Diffstat (limited to 'proxy.py')
-rwxr-xr-x | proxy.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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() |