Created
May 4, 2016 19:15
-
-
Save omedhabib/1c6bd85bd83cc065c41f8a428865963f to your computer and use it in GitHub Desktop.
CherryPy.wsgi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
from cherrypy import wsgiserver | |
from app import application | |
server = wsgiserver.CherryPyWSGIServer( | |
bind_addr=('0.0.0.0', 9808), | |
wsgi_app=application, | |
request_queue_size=500, | |
server_name=socket.gethostname() | |
) | |
if __name__ == '__main__': | |
try: | |
server.start() | |
except KeyboardInterrupt: | |
pass | |
finally: | |
server.stop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Maybe this would be the newest implementation:
https://github.com/cherrypy/cheroot
Would you know how many threads and how many workers would it be capable?
Thank you