summaryrefslogtreecommitdiff
path: root/proxy.py
diff options
context:
space:
mode:
authorThomas Keck <thomas@macbook.macbook>2010-03-12 23:57:30 +0100
committerThomas Keck <thomas@macbook.macbook>2010-03-12 23:57:30 +0100
commit75670597e90ce09da68a2697e860b4ebab2291bc (patch)
tree8320a2df55cbf92e4200150ad0f012184f1cc7ef /proxy.py
parentbe1947145e7ce4d3cb2364e3d374c05e75ffc3f8 (diff)
downloadmagicproxy-75670597e90ce09da68a2697e860b4ebab2291bc.tar.gz
magicproxy-75670597e90ce09da68a2697e860b4ebab2291bc.zip
Remove Keep Alive 1
Diffstat (limited to 'proxy.py')
-rwxr-xr-xproxy.py8
1 files 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()