Pylons / waitress

Waitress - A WSGI server for Python 3
https://docs.pylonsproject.org/projects/waitress/en/latest/
Other
1.44k stars 164 forks source link

Can I use waitress to serve a flask + flask-socketio app? #313

Closed gonzoramos closed 4 years ago

gonzoramos commented 4 years ago

I have a flask server that also acts as a socketio server through flask-socketio - all served behind a nginx reverse proxy server...

Can I use waitress to serve my app in production? Any tips or help would be greatly appreciated!

-G

stevepiercy commented 4 years ago

https://docs.pylonsproject.org/projects/waitress/en/latest/

Waitress is meant to be a production-quality pure-Python WSGI server with very acceptable performance.

However if you need TLS, you currently must use another server, such as nginx, to provide that. See https://github.com/Pylons/waitress/issues/86#issuecomment-281200904

mmerickel commented 4 years ago

I suspect the answer is yes. However waitress is a threaded server and using it with long-lived connections such as long polling would be highly discouraged. Web sockets and other protocols also will not work.

gonzoramos commented 4 years ago

Thank you all for the feedback!