From f964718c838e0dff4721f44ac5118028a5d78457 Mon Sep 17 00:00:00 2001 From: Kevin Gallagher Date: Mon, 10 Oct 2016 20:34:55 -0700 Subject: [PATCH 1/2] Set wget retry options for fetching parameters This will retry upon refused connections and similar errors, wait 1 second before the next retry, time out after 10 seconds if no data is received or the connection times out, plus try an infinite number of times. --- zcutil/fetch-params.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/zcutil/fetch-params.sh b/zcutil/fetch-params.sh index 055eb3a85..0a167baaa 100755 --- a/zcutil/fetch-params.sh +++ b/zcutil/fetch-params.sh @@ -22,6 +22,7 @@ function fetch_params { --progress=dot:giga \ --output-document="$dlname" \ --continue \ + --retry-connrefused --waitretry=1 --timeout=10 --tries 0 \ "$url" shasum -a 256 --check < Date: Tue, 11 Oct 2016 10:56:01 -0700 Subject: [PATCH 2/2] Increases timeout to 30s, wait before retry to 3s Default: 20 tries --- zcutil/fetch-params.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zcutil/fetch-params.sh b/zcutil/fetch-params.sh index 0a167baaa..bf6a123f1 100755 --- a/zcutil/fetch-params.sh +++ b/zcutil/fetch-params.sh @@ -22,7 +22,7 @@ function fetch_params { --progress=dot:giga \ --output-document="$dlname" \ --continue \ - --retry-connrefused --waitretry=1 --timeout=10 --tries 0 \ + --retry-connrefused --waitretry=3 --timeout=30 \ "$url" shasum -a 256 --check <