Make sure urllib3 doesn't do retries.
This commit is contained in:
@@ -40,7 +40,7 @@ class Urllib3HttpConnection(Connection):
|
|||||||
kw = {}
|
kw = {}
|
||||||
if timeout:
|
if timeout:
|
||||||
kw['timeout'] = 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
|
duration = time.time() - start
|
||||||
raw_data = response.data.decode('utf-8')
|
raw_data = response.data.decode('utf-8')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user