-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
listener Socket closes die to inactivity #27
Comments
Are you referring to an approach similar to this? https://websockets.readthedocs.io/en/stable/topics/timeouts.html#keepalive-in-websockets |
Yes, that's what I refer to. But indeed I do not know whether dirigera hub actually supports or needs it. I just see my event listener being closed after a while when no traffic is exchanged with closure code 1000 |
I don't experience that problem but that is probably because I have an air quality sensor that reports changes very frequently (several in a minute). |
I suggest then publishing a ping message every once in a while. I will try to verify if this works. Never experienced this also due to having the air quality sensor. |
Well in fact, since last weeks I don't see the connection drop anymore.
Maybe with the new software IKEA dropped or enlarged the timeout. For the
moment, I guess it could be considered as non issue
Nicolas Hilberg ***@***.***> schrieb am Do., 26. Okt. 2023,
20:04:
… I suggest then publishing a ping message every once in a while. I will try
to verify if this works. Never experienced this also due to having the air
quality sensor.
—
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6ATSSTNEZTD45A3G4ON3VLYBKQZHAVCNFSM6AAAAAA4BXDKQGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBRGU4DSMRSGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The behaviour reoccured and I see disconnection due to inactivity of the listener each 50 to 80 minutes when no updates occur. So maybe the ping would still be a good option. |
@alexkno79 I found that web socket has a ping interval parameter. |
Thanks! |
I see the pings and the pongs but still disconnections. |
Apologies for the necro post, I've been tinkering the past few days trying to find why exactly my script was locking up and I've managed to narrow it down to this module. My theory is that the issue does indeed still persist where the event listener does eventually die out once no actions have occured for some time. Is there a general concensus on how we should go about keeping it alive? |
After a while the listener stops after grateful closure of connection with closure code 1000 due to inactivity.
Could it be, the websocket needs some ping/pong to keep connection alive?
The text was updated successfully, but these errors were encountered: