Is there a way to programmatically stop web.py?

I am trying to start web.application in a windows service and I cannot find a way to programmatically stop it after application.run ().

I tried sys.exit and did not work with Windows Service.

+3
source share
1 answer

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.

+4
source

All Articles