Check For Websocket Data #97
Unanswered
limitedAtonement
asked this question in
Q&A
Replies: 2 comments
-
What happens when SIGTERM is received varies depending on the web server that you are using. A proper handling of SIGTERM by the web server would close all open handles, which would in turn raise an exception on the |
Beta Was this translation helpful? Give feedback.
0 replies
-
A just response. I'm using gunicorn (without gevent and eventlet at the moment). I'll see what it takes to get gunicorn to close IO handles on SIGTERM. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The handler in
examples/clock.py
looks like this:When terminating the server, the termination is held up because of the blocking call on
ws.receive()
. It would be better if we could do something likekeep_running
can be set up to returnFalse
if aSIG_TERM
was sent or whatever.Is there any way to get this type of non-blocking behavior?
Beta Was this translation helpful? Give feedback.
All reactions