Mercurial > public > mercurial-scm > hg
comparison mercurial/configitems.py @ 40043: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 |
comparison
equal
deleted
inserted
replaced
40042:208303a8172c | 40043:6509fcec830c |
---|---|
735 default=None, | 735 default=None, |
736 ) | 736 ) |
737 coreconfigitem('http_proxy', 'user', | 737 coreconfigitem('http_proxy', 'user', |
738 default=None, | 738 default=None, |
739 ) | 739 ) |
740 | |
741 coreconfigitem('http', 'timeout', | |
742 default=None, | |
743 ) | |
744 | |
740 coreconfigitem('logtoprocess', 'commandexception', | 745 coreconfigitem('logtoprocess', 'commandexception', |
741 default=None, | 746 default=None, |
742 ) | 747 ) |
743 coreconfigitem('logtoprocess', 'commandfinish', | 748 coreconfigitem('logtoprocess', 'commandfinish', |
744 default=None, | 749 default=None, |