From fa28d227fd131a8230bfab6e040f180d82bed29d Mon Sep 17 00:00:00 2001 From: kayagokalp Date: Thu, 13 Apr 2023 01:22:38 +0300 Subject: [PATCH] fix: use --retry-connrefused for bootstrap downloads --- src/bootstrap/bootstrap.py | 2 +- src/bootstrap/download.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 025145244c491..b9034511e7018 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -92,7 +92,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", "-Sf", 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 2425155658429..e2785fcb4f1ea 100644 --- a/src/bootstrap/download.rs +++ b/src/bootstrap/download.rs @@ -219,6 +219,7 @@ impl Config { "30", // timeout if cannot connect within 30 seconds "--retry", "3", + "--retry-connrefused", "-Sf", ]); curl.arg(url);