Merge "HTTPClient: actually set a timeout for requests"

This commit is contained in:
Zuul 2019-05-15 13:07:20 +00:00 committed by Gerrit Code Review
commit 83a2dac21c

View File

@ -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" %