-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
This was added in #36 as a way to shutdown local applications, environ["werkzeug.server.shutdown"](). However, the advice for quite some time has been to use a production server even when running local applications; the development server is only for development.
The issue and code comments both describe the implementation as "horrible". The implementation of it is in fact pretty weird, having to touch a double underscore "really private" variable, as well as jump through hoops to work with the HTTP server loop and handle reloader processes.
Additionally, users see this and then are confused why they can only shut down their application when using the development server. Or they want to be able to do more process management such as reloads, which is definitely out of scope.
Is the shutdown function really serving a useful purpose at this point? If we remove it, maybe it can be replaced with a page in the deploy docs about running a production server in a subprocess.