[yum-commits] urlgrabber/grabber.py

skvidal at osuosl.org skvidal at osuosl.org
Tue Aug 4 16:18:43 UTC 2009


 urlgrabber/grabber.py |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 996446b47ad243e3dcb03e340c6dcaaa7a00c49d
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Tue Aug 4 12:16:02 2009 -0400

    missed setting the value from opts.timeout - doesn't really HURT what will happen
    b/c if your connect takes longer than 5minutes then you're SCREWED

diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index 5e3c0d7..05af261 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -1546,6 +1546,7 @@ class PyCurlFileObject():
         # timeouts
         timeout = 300
         if opts.timeout:
+            timeout = opts.timeout
             self.curl_obj.setopt(pycurl.CONNECTTIMEOUT, timeout)
 
         # ssl options


More information about the Yum-commits mailing list