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

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

Closed
gonzoramos opened this issue Sep 2, 2020 · 3 comments
Closed

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

gonzoramos opened this issue Sep 2, 2020 · 3 comments

Comments

@gonzoramos
Copy link

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
Copy link
Member

stevepiercy commented Sep 2, 2020

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 #86 (comment)

@mmerickel
Copy link
Member

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
Copy link
Author

Thank you all for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants