How to wait only so long for a server to respond?
Ralph
ralph at penguin.com
Wed Apr 3 07:59:20 EST 2002
Maik Hertha wrote:
> Ralph wrote:
>
>>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
>>
> you should have a look on the signal module.
> example is here: http://www.python.org/doc/current/lib/node214.html
>
>
Many thanks
More information about the Python-list
mailing list