about summary refs log tree commit diff
path: root/src/libstore/download.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-08-30T13·48+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-08-30T13·48+0200
commit6631a6e1a15784214bae468a4fdd3168aeef4ab7 (patch)
tree04e0c098bf6ef748b4861e34ffaedde732acfa13 /src/libstore/download.cc
parent97b1af1cbe03a48793426bee883ad9c4c9fd7db8 (diff)
Increase the sleep time between download retries
Diffstat (limited to 'src/libstore/download.cc')
-rw-r--r--src/libstore/download.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/download.cc b/src/libstore/download.cc
index 13c665a40ca8..5305a48950c4 100644
--- a/src/libstore/download.cc
+++ b/src/libstore/download.cc
@@ -230,7 +230,7 @@ struct CurlDownloader : public Downloader
             } catch (DownloadError & e) {
                 attempt++;
                 if (e.error != Transient || attempt >= options.tries) throw;
-                auto ms = 25 * (1 << (attempt - 1));
+                auto ms = options.baseRetryTimeMs * (1 << (attempt - 1));
                 printMsg(lvlError, format("warning: %s; retrying in %d ms") % e.what() % ms);
                 std::this_thread::sleep_for(std::chrono::milliseconds(ms));
             }