How to wait only so long for a server to respond?

Ralph ralph at penguin.com
Tue Apr 2 21:10:27 EST 2002


Pythoners:

I have some code that requests a response from a server on the Internet, 
but I only want to wait so long for the server to respond.  How can I tell 
python to wait x seconds/minutes, then move on to the next section of code 
if the server has not responded?

Thanks as always.

Raplh



More information about the Python-list mailing list