multi-threaded webcam with

Gabriel Genellina gagsl-py at
Mon Jan 8 18:35:03 CET 2007

At Monday 8/1/2007 02:44, Ray Schumacher wrote:

>Question, though: how can I unblock asyncore.loop(), or at least be 
>able to interrupt it? To kill this server I need to hit CNTRL-C and 
>then attempt to GET an image from Firefox, Python then throws 

Why do you want to do that? (The usual reason is to have a place to 
do *other* things besides serving the channels). Anyway, you can use 
the count argument to asyncore.loop().
Ctrl-C gets recognised after the timeout expires; the default is 
30sec so you may have to wait up to 30 sec before the 
KeyboardInterrupt. You can lower it.

Gabriel Genellina
Softlab SRL 


Preguntá. Respondé. Descubrí. 
Todo lo que querías saber, y lo que ni imaginabas, 
está en Yahoo! Respuestas (Beta). 
¡Probalo ya! 

More information about the Python-list mailing list