mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user