Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

KeyboardInterrupt on Windows needs 30 seconds #6

Cito opened this Issue Nov 19, 2012 · 0 comments


None yet
2 participants

Cito commented Nov 19, 2012

If you press Ctrl-C under Windows to shut down a running waitress server, it will be only shut down after 30 seconds. This can be somewhat irritating and annoying. The problem can be solved by passing timeout=1 to the asyncore() call in the waitress.WSGIServer.run() method. The default timeout is 30 seconds and it seems a KeyboardInterrupt is only thrown on Windows after that timeout. Setting it to a lower value of 1s should not have any negative implications. The timeout could at least be made a tunable parameter.

@mcdonc mcdonc closed this in 47d1ff8 Jan 10, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment