diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2021-04-15 19:23:21 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2021-04-15 19:36:47 +0200 |
commit | 10631550f1f9788bdfd64d2434237a1448ab0626 (patch) | |
tree | beab71c20e3add30f7743b51d11bbdbf8711a1af /apt-pkg | |
parent | 9d95c64be8dd5a74efb7bcd134f6425c837c22ca (diff) |
Automatically retry failed downloads 3 times
Enable the Acquire::Retries option by default, set to 3.
This will help with slightly unreliable networking; future
work is needed for adding backoff and SRV/IP rotation.
LP: #1876035
Gbp-Dch: full
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/acquire-item.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 2bab7d5c0..225c4304a 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -770,7 +770,7 @@ class APT_HIDDEN CleanupItem : public pkgAcqTransactionItem /*{{{*/ // Acquire::Item::Item - Constructor /*{{{*/ pkgAcquire::Item::Item(pkgAcquire * const owner) : FileSize(0), PartialSize(0), ID(0), Complete(false), Local(false), - QueueCounter(0), ExpectedAdditionalItems(0), Retries(_config->FindI("Acquire::Retries", 0)), Owner(owner), d(new Private()) + QueueCounter(0), ExpectedAdditionalItems(0), Retries(_config->FindI("Acquire::Retries", 3)), Owner(owner), d(new Private()) { Owner->Add(this); Status = StatIdle; |