Mercurial > hg-stable
diff mercurial/configitems.py @ 40044:6509fcec830c
url: allow to configure timeout on http connection
By default, httplib.HTTPConnection opens connection with no timeout.
If the server is hanging, Mercurial will wait indefinitely. This may be an
issue for automated scripts.
Differential Revision: https://phab.mercurial-scm.org/D4878
author | Cédric Krier <ced@b2ck.com> |
---|---|
date | Thu, 04 Oct 2018 11:28:48 +0200 |
parents | dbcb466d0065 |
children | 25b2868206e2 |
line wrap: on
line diff
--- a/mercurial/configitems.py Wed Sep 26 23:50:14 2018 +0200 +++ b/mercurial/configitems.py Thu Oct 04 11:28:48 2018 +0200 @@ -737,6 +737,11 @@ coreconfigitem('http_proxy', 'user', default=None, ) + +coreconfigitem('http', 'timeout', + default=None, +) + coreconfigitem('logtoprocess', 'commandexception', default=None, )