urllib2 and timeout question

Gerard C Blais gerard.blais at gmail.com
Tue May 3 08:07:00 EDT 2005


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 <skip at pobox.com>
wrote:

>    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




More information about the Python-list mailing list