Skip to content

Commit

Permalink
fix: use --retry-all-errors instead of --retry in curl invocations of…
Browse files Browse the repository at this point in the history
… bootstrap download
  • Loading branch information
kayagokalp committed Apr 12, 2023
1 parent 661b33f commit b065eef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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-all-errors" ,"-Sf", url],
stdout=outfile, #Implements cli redirect operator '>'
verbose=verbose,
exception=True, # Will raise RuntimeError on failure
Expand Down
1 change: 1 addition & 0 deletions src/bootstrap/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ impl Config {
"30", // timeout if cannot connect within 30 seconds
"--retry",
"3",
"--retry-all-errors",
"-Sf",
]);
curl.arg(url);
Expand Down

0 comments on commit b065eef

Please sign in to comment.