Thanks for the suggestion:
My program now starts like this:
import time
import socket
socket.setdefaulttimeout(300)
import urllib2
import httplib
import urlparse, gzip
from StringIO import StringIO
and it hasn't helped.
On Mon, 2 May 2005 21:58:46 -0500, Skip Montanaro <[EMAIL PROTECTED]>
Gerard> Code below:
Order might be important (though hopefully not). Can you give this a try?
import time
import socket
socket.setdefaulttimeout(300)
import urllib2
...
Skip
--
http://mail.python.org/mailman/listinfo/python-list
I'm trying to get a page from a slow server. and i'm timing out.
I've tried
socket.setdefaulttimeout9300), and
urllib2.socket.setdefaulttimeout(300), and
urllib2.socket.setdefauttimeout(300.0),
but all seem to give up after 20 seconds.
What's the best (or a good) way to increase the t