is it safe to stop a thread?

Aahz Maruch aahz at panix.com
Tue May 22 19:50:54 EDT 2001


In article <3B0AFDEF.44E29573 at ugcs.caltech.edu>,
Dustin Boswell  <boswell at ugcs.caltech.edu> wrote:
>
>I'm writing a client that needs to access various web sites
>periodically, but the problem is that every once in a while a network
>glitch will happen so that urlopen() hangs forever (hitting CTRL-C
>shows it was on a read() ). This is similar to using Netscape and
>having to click "stop" and then "reload" on a page that won't fully
>load.

Try timeoutsocket.py
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het Pythonista   http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"You do not make history; you can only hope to survive it."  --G'kar



More information about the Python-list mailing list