diff options
author | Thomas Keck <thomas@macbook.macbook> | 2010-03-12 23:57:30 +0100 |
---|---|---|
committer | Thomas Keck <thomas@macbook.macbook> | 2010-03-12 23:57:30 +0100 |
commit | 75670597e90ce09da68a2697e860b4ebab2291bc (patch) | |
tree | 8320a2df55cbf92e4200150ad0f012184f1cc7ef /proxy.py | |
parent | be1947145e7ce4d3cb2364e3d374c05e75ffc3f8 (diff) | |
download | magicproxy-75670597e90ce09da68a2697e860b4ebab2291bc.tar.gz magicproxy-75670597e90ce09da68a2697e860b4ebab2291bc.zip |
Remove Keep Alive 1
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() |