Make sure urllib3 doesn't do retries.

This commit is contained in:
Honza Král
2014-03-01 01:25:25 +01:00
parent 819a59c0bd
commit b78bce79df
+1 -1
View File
@@ -40,7 +40,7 @@ class Urllib3HttpConnection(Connection):
kw = {}
if timeout:
kw['timeout'] = timeout
response = self.pool.urlopen(method, url, body, **kw)
response = self.pool.urlopen(method, url, body, retries=0, **kw)
duration = time.time() - start
raw_data = response.data.decode('utf-8')
except Exception as e: