Skip to content

Commit

Permalink
robustcheckout: set http.timeout config option to avoid hangs (bug 18…
Browse files Browse the repository at this point in the history
…22044) r=sheehan

This is untested, but seems maybe worth a try?

Differential Revision: https://phabricator.services.mozilla.com/D172413

--HG--
extra : moz-landing-system : lando
  • Loading branch information
jcristau committed Mar 13, 2023
1 parent de55d00 commit 4902146
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hgext/robustcheckout/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ def robustcheckout(
# worker.backgroundclose only makes things faster if running anti-virus,
# which our automation doesn't. Disable it.
ui.setconfig(b"worker", b"backgroundclose", False)
# Don't wait forever if the connection hangs
ui.setconfig(b"http", b"timeout", 600)

# By default the progress bar starts after 3s and updates every 0.1s. We
# change this so it shows and updates every 1.0s.
Expand Down

0 comments on commit 4902146

Please sign in to comment.