client timeout!
Steve Holden
sholden at holdenweb.com
Wed Apr 17 08:43:39 EDT 2002
"Stian Jenssen" <stian.jenssen at nrk.no> wrote ...
> Hi all!
>
> Have a little problem.
> Have a script that runs on a ms server.
> It parses other machines for information, but
> when it don't get an answer from the other end it halts.
>
> I want to bypass this problem with a shorter timout, in the .lib file.
>
> Have anybody had a similar problem.
> What file do i have to modify (urllib.py, httplib.py or other) and how?
>
The usual answer is to use the timeoutsocket module from Timothy O'Malley.
See
http://www.timo-tasi.org/python/timeoutsocket.py
regards
Steve
More information about the Python-list
mailing list