Thanks, found the package.py in Bazaar. The problematic 2-second timeout was introduced in rev 305 in the end of November 2008. Before the rev 305 there was no timeout at all.
Could anyone with knowledge of python-apt test increasing the timeout in package.py from 2 to 10 seconds and comment on this fix ?
-import apt_pkg
+import httplib
import sys
import random
+import re
+import socket
import string
+import urllib2
+
+import apt_pkg
+
+# Set a timeout for the changelog download
+socket.setdefaulttimeout(2)
Thanks, found the package.py in Bazaar. The problematic 2-second timeout was introduced in rev 305 in the end of November 2008. Before the rev 305 there was no timeout at all.
Could anyone with knowledge of python-apt test increasing the timeout in package.py from 2 to 10 seconds and comment on this fix ?
Here is when the 2-second timeout appeared first: bazaar. launchpad. net/~mvo/ python- apt/python- apt--mvo/ annotate/ head%3A/ apt/package. py
merged from the consolidation-bracn (with some modificatins) // Michael Vogt 2008-11-24
http://
=== modified file 'apt/package.py'
--- apt/package.py 2008-09-18 12:58:03 +0000
+++ apt/package.py 2008-11-24 13:46:48 +0000
@@ -19,10 +19,18 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-import apt_pkg setdefaulttimeo ut(2)
+import httplib
import sys
import random
+import re
+import socket
import string
+import urllib2
+
+import apt_pkg
+
+# Set a timeout for the changelog download
+socket.
#from gettext import gettext as _
import gettext