phabricator: use the timeout parameter when connecting

This was lost somewhere along the urlgrabber / urllib3 conversion path.

Differential Revision: https://phab.mercurial-scm.org/D1193
This commit is contained in:
Martijn Pieters 2017-10-19 14:03:48 +01:00
parent 8e1f6e378c
commit 01e88aa757

View File

@ -81,7 +81,7 @@ class Client(object):
self._connection = urllib3.PoolManager()
try:
response = self._connection.request(
'POST', url, headers=headers, fields=req_data)
'POST', url, headers=headers, fields=req_data, timeout=timeout)
except urllib3.exceptions.HTTPError as ex:
errno = -1
if ex.args and util.safehasattr(ex.args[0], 'errno'):