Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@vcmorini 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
You can’t perform that action at this time.