From b5ee9feb25e9cbeb51cf8e6a18a1803698b6eff2 Mon Sep 17 00:00:00 2001 From: Gary <125548724+AnakinSkywalkeer@users.noreply.github.com> Date: Wed, 31 May 2023 21:44:47 +0530 Subject: [PATCH 1/6] added "--retry-connrefused" to the curl invocations --- src/bootstrap/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 473fdbe1edc27..6f256d579894f 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", "--retry-connrefused","3", "-SRf", url], stdout=outfile, #Implements cli redirect operator '>' verbose=verbose, exception=True, # Will raise RuntimeError on failure From 93ee6f430b8eb6a858cbc4ac2c36110ccfade53e Mon Sep 17 00:00:00 2001 From: Gary <125548724+AnakinSkywalkeer@users.noreply.github.com> Date: Wed, 31 May 2023 21:45:44 +0530 Subject: [PATCH 2/6] added "--retry-connrefused" --- src/bootstrap/download.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bootstrap/download.rs b/src/bootstrap/download.rs index 12780df21757a..ef2b48d31fc58 100644 --- a/src/bootstrap/download.rs +++ b/src/bootstrap/download.rs @@ -219,6 +219,7 @@ impl Config { "--connect-timeout", "30", // timeout if cannot connect within 30 seconds "--retry", + "--retry-connrefused", "3", "-SRf", ]); From 58a7b23d71e8730881f3286ad2d002cdbe90f640 Mon Sep 17 00:00:00 2001 From: Gary <125548724+AnakinSkywalkeer@users.noreply.github.com> Date: Wed, 31 May 2023 21:54:40 +0530 Subject: [PATCH 3/6] removed the --retry and added --retry-connrefused --- src/bootstrap/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 6f256d579894f..195add1535425 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", "--retry-connrefused","3", "-SRf", url], + "--retry-connrefused","3", "-SRf", url], stdout=outfile, #Implements cli redirect operator '>' verbose=verbose, exception=True, # Will raise RuntimeError on failure From 7d416996e8305fe66a0ed74a00fb59c0e3fae0df Mon Sep 17 00:00:00 2001 From: Gary <125548724+AnakinSkywalkeer@users.noreply.github.com> Date: Wed, 31 May 2023 22:05:37 +0530 Subject: [PATCH 4/6] Update bootstrap.py --- src/bootstrap/bootstrap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 195add1535425..c15e518bc5c5b 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -109,7 +109,8 @@ 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-connrefused","3", "-SRf", url], + "--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 From 3e16025657f51681e527aa47cd4520f3bc3cecf5 Mon Sep 17 00:00:00 2001 From: Gary <125548724+AnakinSkywalkeer@users.noreply.github.com> Date: Wed, 31 May 2023 22:12:00 +0530 Subject: [PATCH 5/6] Update bootstrap.py --- src/bootstrap/bootstrap.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index c15e518bc5c5b..52ed328517ba0 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -109,7 +109,6 @@ 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, From 5c0c3e19ef3ea713e0e1c0ad9a28d23c3f6db0fe Mon Sep 17 00:00:00 2001 From: Gary <125548724+AnakinSkywalkeer@users.noreply.github.com> Date: Wed, 31 May 2023 22:24:52 +0530 Subject: [PATCH 6/6] Update download.rs --- src/bootstrap/download.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/download.rs b/src/bootstrap/download.rs index ef2b48d31fc58..d6348121f37df 100644 --- a/src/bootstrap/download.rs +++ b/src/bootstrap/download.rs @@ -219,8 +219,8 @@ impl Config { "--connect-timeout", "30", // timeout if cannot connect within 30 seconds "--retry", - "--retry-connrefused", "3", + "--retry-connrefused", "-SRf", ]); curl.arg(url);