Disconnect event takes considerable time #754
-
I am honestly uncertain on where this ought to properly go, however I believe the latest socketio release may be related. Describe the bug To Reproduce
Expected behavior Logs
Googling around, previous issues seem to indicate that we need to install gevent or eventlet, but we already have these packages installed. A similar message in the logs points us to something called simple-webserver, but we (also) have this installed. Additional context It is highly probable that this is a bug caused by something we are doing; any advice or potential fixes would be immensely appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When in doubt, please write your question in a discussion. The issues board is for actual issues or enhancements, not to troubleshoot problems. Thanks. You are using long-polling, which by its own nature cannot detect disconnections immediately, the server has to wait some time to declare a client gone. WebSocket disconnections are detected immediately. This has always been the case there are no new changes either in the Python or JS sides that changed this behavior. They key is given to you in the message. You are not using a WebSocket compatible web server.
Installing things without really knowing what you are installing is a really bad idea. For example, only one of eventlet, gevent or simple-websocket are needed, you have to decide which one you want to use. Installing the three of them does not achieve anything, it just confuses things. Which WebSocket package do you want to use? Keep that one, uninstall the other two, then look in the documentation for instructions on how to start your chosen WebSocket server: https://python-socketio.readthedocs.io/en/latest/server.html#deployment-strategies |
Beta Was this translation helpful? Give feedback.
When in doubt, please write your question in a discussion. The issues board is for actual issues or enhancements, not to troubleshoot problems. Thanks.
You are using long-polling, which by its own nature cannot detect disconnections immediately, the server has to wait some time to declare a client gone. WebSocket disconnections are detected immediately. This has always been the case there are no new changes either in the Python or JS sides that changed this behavior.
They key is given to you in the message. You are not using a WebSocket compatible web server.