Replies: 1 comment 8 replies
-
I don't understand what you mean by this. There are no requests and responses in Socket.IO. I think this is likely a misunderstanding on your part on how Socket.IO works.
See the documentation for how to run Gunicorn with eventlet. The
This is true, but unrelated to the problems that you are having as far as I can see.
There is nothing special that needs to be done, and there is a working Socket.IO example in the |
Beta Was this translation helpful? Give feedback.
-
import eventlet
eventlet.monkey_patch()
from server import app, socketio
if name == 'main':
socketio.run(app)
This is the wsgi.py file, socket connections do connect but multiple requests aren't handled and the responses get mixed and the same response is sent to both requests.
gunicorn -k eventlet -w 2 -b 0.0.0.0:8765 wsgi:app, This is the run command I am using, and I am seeing other discussions where it's mentioned eventlet is not suitable anymore,
Can anyone give me proper direction on how to handle multiple requests while also having seperate socket connections to each of them?
Beta Was this translation helpful? Give feedback.
All reactions