You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 theasyncore()
call in thewaitress.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.The text was updated successfully, but these errors were encountered: