[EMAIL PROTECTED] wrote:
> alf wrote:
>
>>I have one thread app using SocketServer and use server_forever() as a
>>main loop. All works fine, but now I need certain timer checking let's
>>say every 1 second something and stopping the main loop. So questions are:
>> -how to stop serve_forever
[EMAIL PROTECTED] wrote:
...
>
> That alone does not work. If server.handle_request() blocks,
> you don't get to the check(). You need some kind of timeout
> in handle_request().
>
>
> --
> --Bryan
Ach! You're right. I didn't consider that handle_request() might
block..
--
http://mail.python.or
Simon Forman wrote:
> alf wrote:
> > Hi,
> >
> > I have one thread app using SocketServer and use server_forever() as a
> > main loop. All works fine, but now I need certain timer checking let's
> > say every 1 second something and stopping the main loop. So questions are:
> > -how to stop ser
alf wrote:
> Hi,
>
> I have one thread app using SocketServer and use server_forever() as a
> main loop. All works fine, but now I need certain timer checking let's
> say every 1 second something and stopping the main loop. So questions are:
> -how to stop serve_forever
> -how to implem
alf wrote:
> I have one thread app using SocketServer and use server_forever() as a
> main loop. All works fine, but now I need certain timer checking let's
> say every 1 second something and stopping the main loop. So questions are:
> -how to stop serve_forever
Override serve_forever() and