3 ms·
Thanks for this. A few months ago I looked into getting gevent-socketio up and running to do real-time messaging between a Flask app and an iOS app. gevent-sock
by stevenwei 13y ago
Thanks for this. A few months ago I looked into getting gevent-socketio up and running to do real-time messaging between a Flask app and an iOS app. gevent-socketio provides event handling and a messaging protocol on top of websockets that I thought would be useful.
However, based on my testing, in its current state it's nowhere near ready for production. There are some serious bugs relating to memory leaks, improperly closing stale sockets, and deployment on Gunicorn with # workers > 1 is not currently possible. (And in practice I don't think you would want to deploy on anything besides Gunicorn.) The project also seems to be somewhat inactive, there are a lot of open critical issues and there hasn't been any real activity in the last 6 months or so.
At this point I am considering removing the library and using a straight websocket implementation with a simpler protocol instead.
- tyrion 13y ago> (And in practice I don't think you would want to deploy on anything besides Gunicorn.) (You should definitely have a look at uWSGI.)
- stevenwei 13y agoI have been running uWSGI for many years, I only recently made the switch to Gunicorn for the async gevent/websockets support. (The last time I looked, which was a few months ago anyway, uWSGI support for gevent/websockets wasn't very robust.)