Setting socket timeout ( socket.setdefaulttimeout(10)) fixes the bug but the reasons is unclear.
This patch fixes the bug under 9.04
in /usr/lib/python2.5/site-packages/launchpadbugs/storeblob.py
--- storeblob.py.orig
+++ storeblob.py
@@ -11,6 +11,7 @@
'''
import multipartpost_handler, urllib2, time, httplib
+import socket
_https_upload_callback = None
@@ -68,6 +69,7 @@
global _https_upload_callback
_https_upload_callback = progress_callback
+ socket.setdefaulttimeout(10)
opener = urllib2.build_opener(HTTPSProgressHandler, multipartpost_handler.MultipartPostHandler)
result = opener.open('https://launchpad.net/+storeblob',
{ 'FORM_SUBMIT': '1', 'field.blob': blob })
Setting socket timeout ( socket. setdefaulttimeo ut(10)) fixes the bug but the reasons is unclear.
This patch fixes the bug under 9.04 python2. 5/site- packages/ launchpadbugs/ storeblob. py
in /usr/lib/
--- storeblob.py.orig
+++ storeblob.py
@@ -11,6 +11,7 @@
'''
import multipartpost_ handler, urllib2, time, httplib
+import socket
_https_ upload_ callback = None
@@ -68,6 +69,7 @@
global _https_ upload_ callback upload_ callback = progress_callback setdefaulttimeo ut(10) build_opener( HTTPSProgressHa ndler, multipartpost_ handler. MultipartPostHa ndler) /launchpad. net/+storeblob',
_https_
+ socket.
opener = urllib2.
result = opener.open('https:/
{ 'FORM_SUBMIT': '1', 'field.blob': blob })