Skip to content

Commit fa28d22

Browse files
committed
fix: use --retry-connrefused for bootstrap downloads
1 parent 661b33f commit fa28d22

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/bootstrap/bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _download(path, url, probably_big, verbose, exception):
9292
"-L", # Follow redirect.
9393
"-y", "30", "-Y", "10", # timeout if speed is < 10 bytes/sec for > 30 seconds
9494
"--connect-timeout", "30", # timeout if cannot connect within 30 seconds
95-
"--retry", "3", "-Sf", url],
95+
"--retry", "3", "--retry-connrefused", "-Sf", url],
9696
stdout=outfile, #Implements cli redirect operator '>'
9797
verbose=verbose,
9898
exception=True, # Will raise RuntimeError on failure

src/bootstrap/download.rs

+1
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ impl Config {
219219
"30", // timeout if cannot connect within 30 seconds
220220
"--retry",
221221
"3",
222+
"--retry-connrefused",
222223
"-Sf",
223224
]);
224225
curl.arg(url);

0 commit comments

Comments
 (0)