threads and urllib

Aahz Maruch aahz at panix.com
Wed Feb 20 15:52:41 EST 2002


In article <b03e80d.0202201228.76ac8525 at posting.google.com>,
Sandy Norton <sandskyfly at hotmail.com> wrote:
>
>This simple little program retrieves web pages using threads and
>urllib. Now it seems to work fine with many websites, however, more
>often than not it just hangs there and the thread (or is it the
>socket?) does not time out and die.
>
>Is there anyway to specify a time limit in which the operation can
>happen and enforce it in the code?

http://www.timo-tasi.org/python/timeoutsocket.py
-- 
                      --- Aahz  <*>  (Copyright 2002 by aahz at pobox.com)

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

"Not everything in life has a clue in front of it...."  --JMS



More information about the Python-list mailing list