Commit 0012f922 authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Fix timeout issue with python 2.5

parent 2b10cff4
......@@ -46,7 +46,9 @@ class Stream(object):
# quit if error count greater than retry count
break
try:
conn = httplib.HTTPConnection(self.host, timeout=self.timeout)
conn = httplib.HTTPConnection(self.host)
conn.connect()
conn.sock.settimeout(self.timeout)
conn.request('POST', self.url, headers=headers)
resp = conn.getresponse()
if resp.status != 200:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment