I solved the question that I initially raised by looking at the source code of web.py and setting WSGIServer in web / httpserver.py on web / application.py so that I can call WSGIServer.stop () in application.stop (), which I added .
This is a quick hack and not that neat, but he quickly removed the blocker.
source
share