From e43e8be8e76b4457c1dfe7578870b2c995dc6a43 Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Mon, 10 Apr 2017 09:22:24 -0400 Subject: Default to 5 download retries This should help certain downloaders that don't request anything special for the number of retries, like nix-channel. --- src/libstore/download.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libstore/download.hh b/src/libstore/download.hh index e2e16b361036..62f3860b9dae 100644 --- a/src/libstore/download.hh +++ b/src/libstore/download.hh @@ -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) { } -- cgit 1.4.1