about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorDan Peebles <pumpkin@me.com>2017-04-10T13·22-0400
committerDan Peebles <pumpkin@me.com>2017-04-10T13·22-0400
commite43e8be8e76b4457c1dfe7578870b2c995dc6a43 (patch)
tree3935e7cd213a4914175b6f98fae1b7f8234ed0c8 /src/libstore
parent53edb55588e362ee6aa8f6b436c6db6b0409b615 (diff)
Default to 5 download retries
This should help certain downloaders that don't request anything special
for the number of retries, like nix-channel.
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/download.hh2
1 files changed, 1 insertions, 1 deletions
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) { }