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
After reconnect, Mosquitto exceeds receive maximum setting sent by broker #1822
Comments
Thank you for the detailed description and patch, that made it very straightforward. Could you please try the |
I tested with the |
Okay, I have to correct this. I mistested and used my system's mosquitto library instead of the newly compiled one. When actually using the new one, it works. Thanks a lot @ralight! |
Excellent, thanks for reporting back. I've made that same mistake numerous times. |
We discovered that when used in an MQTT 5 scenario the mosquitto client library exceeds the receive maximum setting sent by the broker in the CONNACK packet. By default, HiveMQ sends a receive maximum setting of 10 in its answer
Here is some information on how to reproduce with HiveMQ as the broker and using
mosquitto_pub
to send messages:mosquitto_pub
sleep for 10 seconds, so we have time to stop HiveMQ and force a reconnect.mosquitto_pub
and wait for the messageFreeze HiveMQ broker within next 10 secs
mosquitto_pub
will now retransmit the original 10 messages, but also continue publishing, until it receives a DISCONNECT packet with reason code 147 ("Receive maximum exceeded").The text was updated successfully, but these errors were encountered: