( )⚙ D4878 url: Allow to configure timeout on http connection

This is an archive of the discontinued Mercurial Phabricator instance.

url: Allow to configure timeout on http connection
ClosedPublic

Authored by ced on Oct 4 2018, 5:36 AM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ced created this revision.Oct 4 2018, 5:36 AM
This revision was automatically updated to reflect the committed changes.