Make sure urllib3 doesn't do retries.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user