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;
enum { yes, no, automatic } showProgress = yes;
bool head = false;
size_t tries = 1;
size_t tries = 5;
unsigned int baseRetryTimeMs = 250;
DownloadRequest(const std::string & uri) : uri(uri) { }