Skip to content

Instantly share code, notes, and snippets.

@omedhabib
Created May 4, 2016 19:15
Show Gist options
  • Save omedhabib/1c6bd85bd83cc065c41f8a428865963f to your computer and use it in GitHub Desktop.
Save omedhabib/1c6bd85bd83cc065c41f8a428865963f to your computer and use it in GitHub Desktop.
CherryPy.wsgi
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()
@vcmorini
Copy link

vcmorini commented Jun 9, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment