Zdenek Maxa wrote:
> Hi,
>
> I would like to ask how I should set timeout for a call:
>
> f = urllib2.urlopen(url)
>
>
> I know that Python 2.6 offers
> urllib2.urlopen(url[, data][, timeout])
> which would elegantly solved my problem, but I have to stick to Python 2.5.
>
There are three sol
Hi,
I would like to ask how I should set timeout for a call:
f = urllib2.urlopen(url)
I am using Python 2.5. I have already tried
socket.setdefaulttimeout(3). However, this adversely affects other
connections the application makes, since it seems to affect all socket
connections.
I know that Py