[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#534752: Acquire::http::Dl-Limit ignored when downloading from multiple sites



tag 534752 patch
thanks

> When apt-get or aptitude downloads from more than one server at once,
> it ignores Acquire::http::Dl-Limit.
Thanks for reporting the issue!
The problem is luckily only a little typo in apt-pkg/acquire.cc.
As long as a new version with a patch is not uploaded you can add
-o Acquire::http::DlLimit=1
to your apt-get command as a "hotfix".
(Note: The concrete value for this typo-config is irrelevant)

> However, after downloading several files, it will indeed start obeying
> Acquire::http::Dl-Limit. So the problem isn't for the entire download session.
The typo prevents apt from switching into a single download mode.
If you look close at the output you can see, that the first download
obey the Dl-Limit - but all other downloads run at fullspeed,
so if only one package is downloaded the Limit is obeyed. :)


Best regards / Mit freundlichen Grüßen,


David "DonKult" Kalnischkies


=== modified file 'apt-pkg/acquire.cc'
--- apt-pkg/acquire.cc  2009-06-26 13:10:16 +0000
+++ apt-pkg/acquire.cc  2009-06-27 09:21:18 +0000
@@ -266,7 +266,7 @@
       return 0;

    /* if a method uses DownloadLimit, we switch to SingleInstance mode */
-   if(_config->FindI("Acquire::"+Access+"::DlLimit",0) > 0)
+   if(_config->FindI("Acquire::"+Access+"::Dl-Limit",0) > 0)
       Conf->SingleInstance = true;

    return Conf;



Reply to: