So presumably this is a very simple diff, to add a timeout to curl connections:
=== modified file 'smart/fetcher.py' --- smart/fetcher.py 2008-11-16 00:56:23 +0000 +++ smart/fetcher.py 2008-11-24 15:46:32 +0000 @@ -1649,6 +1649,7 @@
handle.setopt(pycurl.URL, str(url)) handle.setopt(pycurl.OPT_FILETIME, 1) + handle.setopt(pycurl.TIMEOUT, 600) handle.setopt(pycurl.NOPROGRESS, 0) handle.setopt(pycurl.PROGRESSFUNCTION, progress) handle.setopt(pycurl.WRITEDATA, local)
But! It is also very hard to test. Gustavo, what do you think?
So presumably this is a very simple diff, to add a timeout to curl connections:
=== modified file 'smart/fetcher.py'
--- smart/fetcher.py 2008-11-16 00:56:23 +0000
+++ smart/fetcher.py 2008-11-24 15:46:32 +0000
@@ -1649,6 +1649,7 @@
+ handle.
But! It is also very hard to test. Gustavo, what do you think?