mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
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:
parent
8e1f6e378c
commit
01e88aa757
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user