simple httplib and urllib timeout question

Oleg Broytmann phd at phd.russ.ru
Thu Apr 13 05:07:16 EDT 2000


On Thu, 13 Apr 2000, Georg Mischler wrote:
> What exactly is your problem with signal.alarm() ?

   Python delivers alarm only when in Python VM. If the script is blocked
in C (even worse - in system call), the signal will NOT be delivered.
   Of course, URL checker, while running through a big list of URLs,
certainly spend most of the time in connect() and recv() system calls. This
makes signals unusable.

Oleg.            (All opinions are mine and not of my employer)
---- 
    Oleg Broytmann      Foundation for Effective Policies      phd at phd.russ.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list