Currently, when waitress receives a SIGINT or traps a SystemExit exception, it tries to shutdown the running task dispatcher.
The shutdown method embeds inside its function signature a hardcoded timeout value of 5 seconds.
This should not be hidden nor hardcoded. It should be exposed as a parameter to the operator.
The line of source code I'm talking about is here:
|
def shutdown(self, cancel_pending=True, timeout=5): |
and the only place it's called (I believe, outside of tests):
|
self.task_dispatcher.shutdown() |
Currently, when waitress receives a SIGINT or traps a SystemExit exception, it tries to shutdown the running task dispatcher.
The shutdown method embeds inside its function signature a hardcoded timeout value of 5 seconds.
This should not be hidden nor hardcoded. It should be exposed as a parameter to the operator.
The line of source code I'm talking about is here:
waitress/waitress/task.py
Line 118 in 68a38e9
and the only place it's called (I believe, outside of tests):
waitress/waitress/server.py
Line 127 in 68a38e9