Waiting for client events leads to timeouts #2055
Unanswered
jorgschulze73
asked this question in
Q&A
Replies: 1 comment 4 replies
-
What does the client do when it receives one of these events? The client must send an acknowledgement, that is what triggers the callback. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi miguel, been using Flask-SocketIO for a while but stumbled upon some issues recently; hopefully you'll be able to provide some insights on how to resolve them.
This is my current setup:
The problem:
I have noticed that requests are consistently timing out when using
call
oremit + waiting for callback
; in particular way, I'm not seeing the concurrency behaviour that I would expect from using gevent.Here is a simple snippet:
What I would expect to happen:
The
call
invocation should take care of yielding the current greenlet, potentially letting another one run.Whenever the socketio will invoke its callback, the request will complete and client would be returned data immediately.
What I'm seeing:
The request never returns before the timeout is hit; moreover, the handling time for each one of these requests seem to creep up over time:
As a side note, I also have monkey patching applied at the very beginning of the entry point invoked by uWSGI.
I would appreciate your guidance in troubleshooting this issue, or attempting to work around possible limitations.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions