You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll have to spend some time looking at this myself. My impression based on reading the gevent-socketio is that there isn't official support for uWSGI. The problem that you have is that uWSGI is instantiating a regular gevent server, but gevent-socketio overloads that server and adds its own stuff. For this to work we need to tell uWSGI to create a different server, and I don't really know how to do that, I'll have to play with it and try to figure it out.
Glad to see that I'm not crazy. Let me know if you figure out how to fix this. If you need anything from me, let me know as well. In the meantime I'll have to resort to pulling o_O.
It does not seem to be possible to run gevent-socketio apps on uWSGI. What's missing is that uWSGI uses its own gevent loop, and there is no easy way to provide an alternative one. A gevent-socketio application requires a specialized server that is based on gevent but does some additional work.
I have added a Deployment section to the documentation that lists the known deployment strategies. I have also added a more friendly error when a incompatible server is used.
Hey,
I'm having issues making uWSGI working with Flask-SocketIO, it throws a KeyError for socketio in socketio_manage.
These are snippets from my app.py:
I'm running uWSGI like this:
What am I doing wrong?
I'm running uWSGI 2.0.2, Flask-SocketIO 0.2.2, gevent-socketio 0.3.6
The text was updated successfully, but these errors were encountered: