-
Notifications
You must be signed in to change notification settings - Fork 136
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
Improve timeout mechanisms #17
Comments
@njh what action does one take if at all it has hung? |
It should send a disconnect packet and then close the TCP socket. |
In the name of fault tolerance, wouldn't it be better to:
Your thoughts? -Balwant |
The ping behaviour is bandwidth consumer, such some device should avoid. See this MQTT explanation about Keep Alive mechanism in the protocol spec: https://www.hivemq.com/blog/mqtt-essentials-part-10-alive-client-take-over/ Resume: "If the client does not send a messages during the keep-alive period, it must send a PINGREQ packet to the broker to confirm that it is available and to make sure that the broker is also still available." |
coming in 10 years later with a use case ... We use this on the server, and we are unconcerned with bandwidth. I have observed that we get "stale" connections. I don't know how else to describe it, but we are sitting in the I agree that you probably wouldn't want bandwidth constrained end-devices to leverage this behavior. |
Detect hung connections.
Check:
The text was updated successfully, but these errors were encountered: