Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make web.py applications stoppable in stand-alone mode #122

Closed
wants to merge 1 commit into from

Commits on Dec 16, 2011

  1. Make web.py applications stoppable in stand-alone mode

    web.py applications typically run in WSGI mode, but when used in embedded
    environments, it may be more useful to run the application in stand-alone
    server mode (a.k.a. 'app.run()').
    
    Also, running the application via 'app.run()' in a different thread kills
    the out-of-the-box behavior of stopping the application with Ctrl-C.
    
    This patch adds the 'stop(self)' method to the application class, so that
    applications running stand-alone can be stopped easily with 'app.stop()'.
    
    Credits: llc at stackoverflow: http://stackoverflow.com/questions/5389111
    
    Related to: webpy#100
    Irfy committed Dec 16, 2011
    Copy the full SHA
    23d24d8 View commit details
    Browse the repository at this point in the history