From 4d7a4fbd9f634d0c2f1e660d3981e965b3513466 Mon Sep 17 00:00:00 2001 From: lolbinarycat Date: Thu, 21 Nov 2024 20:53:21 -0600 Subject: [PATCH] improve error handling flags to curl current invocation is extremely fragile if tcp sockets are spuriously shutdown (this can happen when changing networks, or just due to a bad ISP) --retry-all-errors is the only way to make curl robust against this type of failure. --- pkgs/build-support/fetchurl/builder.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/build-support/fetchurl/builder.sh b/pkgs/build-support/fetchurl/builder.sh index a82728ef1025..ff8ece36fea2 100644 --- a/pkgs/build-support/fetchurl/builder.sh +++ b/pkgs/build-support/fetchurl/builder.sh @@ -14,6 +14,8 @@ curl=( --location --max-redirs 20 --retry 3 + --retry-all-errors + --continue-at - --disable-epsv --cookie-jar cookies --user-agent "curl/$curlVersion Nixpkgs/$nixpkgsVersion"