---
urlgrabber/grabber.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index 74178d7..3791fff 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -2151,6 +2151,7 @@ def parallel_wait(meter=None):
dl = _ExternalDownloaderPool()
host_con = {} # current host connection counts
+ single = set() # single connection only mode
def start(opts, tries):
opts.tries = tries
@@ -2197,6 +2198,8 @@ def parallel_wait(meter=None):
if ug_err is None:
continue
+ if ug_err.errno == 28 and limit > 1:
+ single.add(key)
retry = opts.retry or 0
if opts.failure_callback:
@@ -2297,6 +2300,8 @@ def parallel_wait(meter=None):
# check host limit, then start
key, limit = opts.async
+ if key in single:
+ limit = 1
while host_con.get(key, 0) >= limit:
perform()
if DEBUG:
--
1.7.11.7
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel