The mirror's 'kwargs' hash is used to update the grab request,
and it was overriding the global limit.  Using different names
is also much clearer.
---
 yum/yumRepo.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index 35182d3..0f9ac55 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -541,7 +541,7 @@ class YumRepository(Repository, config.RepoConf):
             if mc > 0:
                 url = {
                     'mirror': misc.to_utf8(url),
-                    'kwargs': { 'max_connections': mc },
+                    'kwargs': { 'max_mirror_connections': mc },
                 }
             return url
         urls = self.urls
-- 
1.7.4.4

_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to