Hi again,
> > problem?
> import socket
> if not socket.getdefaulttimeout():
> socket.setdefaulttimeout(25.0)
>
I'm sorry I forgot to mention that I'm using python 2.2.3, and this version
doesn't have those methods.
Patty
___
Tutor m
On Fri, 30 Jun 2006, Patty wrote:
> I'm doing some failure testing for a python script that uses urllib and
> urllib2 to open a web page and post data Is there a way I can
> implement a timeout to handle this problem?
I don't have any firsth-hand knowledge on this, but
http://www.voidspace.o
On Fri, 2006-06-30 at 13:58 +, Patty wrote:
> Hi all,
> I'm doing some failure testing for a python script that uses urllib and
> urllib2
> to open a web page and post data. If the server's apache is down or if I
> change
> the ip address the script is trying to contact to be a bogus address