Flask-SocketIO: Requests not returning when using eventlet or gevent
I have an app that receives messages using socketio and then queries a service (dialogflow) and takes different actions depending on the answer. Everything works fine when I am using async_mode="threading", but if I switch to eventlet (even using monkey_patch) or gevent, the query to dialogflow (post) never returns an answer.
How do I fix this?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 26 (9 by maintainers)
That does indeed get the logs back. But then the rest of the program (the part that used threading, and now uses eventlet) stops working 😞
Also, if I use
eventlet.monkey_patch()instead ofeventlet.patcher.monkey_patch(select=True, socket=True), even without logs, the threading part doesn’t work.