1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-20 11:11:03 -04:00

Default to 5 download retries

This should help certain downloaders that don't request anything special
for the number of retries, like nix-channel.
This commit is contained in:
Dan Peebles 2017-04-10 09:22:24 -04:00
parent 53edb55588
commit e43e8be8e7

View file

@ -15,7 +15,7 @@ struct DownloadRequest
bool verifyTLS = true; bool verifyTLS = true;
enum { yes, no, automatic } showProgress = yes; enum { yes, no, automatic } showProgress = yes;
bool head = false; bool head = false;
size_t tries = 1; size_t tries = 5;
unsigned int baseRetryTimeMs = 250; unsigned int baseRetryTimeMs = 250;
DownloadRequest(const std::string & uri) : uri(uri) { } DownloadRequest(const std::string & uri) : uri(uri) { }