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.
This commit is contained in:
lolbinarycat 2024-11-21 20:53:21 -06:00 committed by GitHub
parent 8edf06bea5
commit 4d7a4fbd9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"