-
Notifications
You must be signed in to change notification settings - Fork 101
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
Unexplained websocket disconnection precisely 5 minutes after the connection is established #609
Comments
This #631 tries to test it |
I made an own tab to observer ping behavior #644 and when I try a reconnect of connection lost #646 I see that
I've no explanation. does someone understand what's going on here ?
|
We are also experiencing the same problem: we are connecting to a mqtt broker through websockets and it is disconnecting after exactly 5 minutes too. Did someone figured out a solution or temporary fix? |
Currently: no, it ends up with a |
Could it be telecom network heartbeat problem? |
concerning this These could be one of the reason, keep in mind it's not an error
|
@FJEagle |
Tested using Paho version 4.2.4 on Andorid 11 and Android 7
I have been connecting to a mosquito (v2) broker using the mqtt protocol on port 1883 and everything is fine, but exactly the same setup using web sockets on port 9001 causes a disconnection exactly 5 minutes after connection every time (the auto reconnect then does its thing and the connection is re-established again almost instantly). It seems very easy to reproduce, I am using the default configs for mosquitto and paho and it happens every time. I have tried setting the keepalive interval to both 10 and 100 seconds, I see the PINGREQ and PINGRESP messages in the broker logs and that seems to be working fine.
I think that this is an issue with the client and not the broker because the Paho python client does not have the same issue with the same configuration and broker (also using websockets). I have tried bot SSL and plaintext, and brokers hosted in a k8s cluster and in my local testing environment, always a disconnection after 5 minutes.
The text was updated successfully, but these errors were encountered: