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
Broker doesn't honor Receive Maximum value set in a bridged broker's CONNACK #3002
Comments
After further digging, the response from the server was I restarted the mosquitto broker, configuring It appears that the original bug has been resolved, but is the echo of retained messages over a topic (mapped in both directions) the expected behavior of a Mosquitto broker using |
After more debugging with gdb, here's what I've found: The order of operations of Mosquitto starting up and connecting a bridge causes this issue:
The problem is that the import of the Receive Maximum value doesn't impact the already allocated This probably won't become priority for us to fix for a few weeks, but I'll plan on writing a patch around that time. |
UPDATE
The root cause has been found in the comment below, and the details listed in this comment are out of date, though the logs give good context.
Environment Details
OS: Debian Bullseye
Mosquitto Version: 2.0.18
Issue
A Mosquitto broker with >20 queued messages destined for a bridged HiveMQ broker connects, attempts to send 20 queued messages, closes the bridge, and repeats.
I have Mosquitto and one MQTT client running on an IoT device. Mosquitto is configured to bridge to a HiveMQ broker running on a remote machine. I conducted a durability test where I disconnect the network between the bridged brokers, send ~100 messages from the IoT client to the IoT mosquitto broker, restart the mosquitto broker, and then reconnect the network. Once I reconnect the network, the mosquitto broker repeatedly attempts to send 20 messages over the bridge, receives a retained message, disconnects the bridge, and repeats.
Related issues
#2165 - appears related but pastebins have expired and I can't tell if bridge disconnections were happening.
To Replicate
Mosquitto Config
Relevant Logs (debug)
The text was updated successfully, but these errors were encountered: