Merge "HTTPClient: actually set a timeout for requests"
This commit is contained in:
commit
83a2dac21c
@ -270,6 +270,7 @@ class HTTPClient(_BaseHTTPClient):
|
|||||||
conn_url,
|
conn_url,
|
||||||
data=data,
|
data=data,
|
||||||
headers=headers,
|
headers=headers,
|
||||||
|
timeout=self.timeout,
|
||||||
**kwargs)
|
**kwargs)
|
||||||
except requests.exceptions.Timeout as e:
|
except requests.exceptions.Timeout as e:
|
||||||
message = ("Error communicating with %(url)s: %(e)s" %
|
message = ("Error communicating with %(url)s: %(e)s" %
|
||||||
|
Loading…
Reference in New Issue
Block a user