Urllib2 and timeouts

Johny python at hope.cz
Wed Feb 14 11:52:01 EST 2007


In my script I started using urllib2 to connect to a list of
servers.It works well but only  until  a server from the list is not
available.Then if it is down , there is a timeout and my script ends
with the error.
So, if I have a list of 10 servers, and the second from the list is
not available , no others are used.
Is there a way how to solve that problem, so that servers after  the
server that is  not available will be used  too?
Thanks for help
L.




More information about the Python-list mailing list