diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 473fdbe1edc27..52ed328517ba0 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -109,7 +109,7 @@ def _download(path, url, probably_big, verbose, exception): "-L", # Follow redirect. "-y", "30", "-Y", "10", # timeout if speed is < 10 bytes/sec for > 30 seconds "--connect-timeout", "30", # timeout if cannot connect within 30 seconds - "--retry", "3", "-SRf", url], + "--retry", "3", "--retry-connrefused", "-Sf", url], stdout=outfile, #Implements cli redirect operator '>' verbose=verbose, exception=True, # Will raise RuntimeError on failure diff --git a/src/bootstrap/download.rs b/src/bootstrap/download.rs index 12780df21757a..d6348121f37df 100644 --- a/src/bootstrap/download.rs +++ b/src/bootstrap/download.rs @@ -220,6 +220,7 @@ impl Config { "30", // timeout if cannot connect within 30 seconds "--retry", "3", + "--retry-connrefused", "-SRf", ]); curl.arg(url);