HTTPClient: actually set a timeout for requests

The 'timeout' attribute was previously left unused.

Change-Id: If615c390302425fe5a646b4651ec6f56aa08fd22
Closes-Bug: #1822052
This commit is contained in:
Cyril Roelandt 2019-04-09 18:42:52 +02:00
parent 31f7708b94
commit d589aa257d
1 changed files with 1 additions and 0 deletions

View File

@ -270,6 +270,7 @@ class HTTPClient(_BaseHTTPClient):
conn_url,
data=data,
headers=headers,
timeout=self.timeout,
**kwargs)
except requests.exceptions.Timeout as e:
message = ("Error communicating with %(url)s: %(e)s" %