diff options
author | Dan Peebles <pumpkin@me.com> | 2017-04-10 09:22:24 -0400 |
---|---|---|
committer | Dan Peebles <pumpkin@me.com> | 2017-04-10 09:22:24 -0400 |
commit | e43e8be8e76b4457c1dfe7578870b2c995dc6a43 (patch) | |
tree | 3935e7cd213a4914175b6f98fae1b7f8234ed0c8 /src/libstore | |
parent | 53edb55588e362ee6aa8f6b436c6db6b0409b615 (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.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/download.hh b/src/libstore/download.hh index e2e16b361..62f3860b9 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) { } |