Zhang Huangbin wrote: > > > On Nov 29, 5:16 am, andrei <[EMAIL PROTECTED]> wrote: >> I think its because it waits for all running server threads to exit >> gracefully. > > Thanks andrei. :)
Maybe it is worth pointing out that while you were inventive enough to come ask the mailing list, it is probably that many people are wondering about the same thing but just write it off as "an annoying web.py thing". Maybe it's a good idea to print a "Interrupt received, shutting down connections gracefully" on C-c? If the HTTPd threads are all daemonized you could even allow a second C-c to skip the join() entirely and just kill the main thread, thereby shutting down all other threads the hard way (assuming the main thread is the only non-daemon thread). Perhaps there is more to it (you never know with threading :P) but it sounds like it could work.. What do you think? b4 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
