Commit 0f85d581 authored by Jérome Perrin's avatar Jérome Perrin

don't set a global timeout


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41657 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a7308ec9
...@@ -52,10 +52,6 @@ import ContributionOpener ...@@ -52,10 +52,6 @@ import ContributionOpener
opener = urllib2.build_opener(ContributionOpener.DirectoryFileHandler) opener = urllib2.build_opener(ContributionOpener.DirectoryFileHandler)
urllib2.install_opener(opener) urllib2.install_opener(opener)
# A temporary hack until urllib2 supports timeout setting - XXX
import socket
socket.setdefaulttimeout(600) # 1 minute timeout
# Global parameters # Global parameters
TEMP_NEW_OBJECT_KEY = '_v_new_object' TEMP_NEW_OBJECT_KEY = '_v_new_object'
MAX_REPEAT = 10 MAX_REPEAT = 10
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment