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:
parent
8edf06bea5
commit
4d7a4fbd9f
@ -14,6 +14,8 @@ curl=(
|
|||||||
--location
|
--location
|
||||||
--max-redirs 20
|
--max-redirs 20
|
||||||
--retry 3
|
--retry 3
|
||||||
|
--retry-all-errors
|
||||||
|
--continue-at -
|
||||||
--disable-epsv
|
--disable-epsv
|
||||||
--cookie-jar cookies
|
--cookie-jar cookies
|
||||||
--user-agent "curl/$curlVersion Nixpkgs/$nixpkgsVersion"
|
--user-agent "curl/$curlVersion Nixpkgs/$nixpkgsVersion"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user