You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My setup:
Device send mqtt data to the bridge.
Mosquitto broker v 2.0.11 configured as bridge, running on Windows 10
Mosquitto broker v 2.0.7 running on Windows server 2016
All messages are send with QoS 1
I test by enabling a firewall rule that does not allow connection to the port. (1884)
If the bridge loses the Internet connection (enable the firewall rule) to the other broker, then data is buffered in memory, and if the Internet connection is established before memory reaches max_queued_bytes (1000000), then all buffered datas are sent.
However, if the Internet connection is not established until max_queued_bytes is reached, it will never send any data. I have to stop the broker, remove the persistent file and restart the broker.
It looks like the broker never reconnect again, if the memory usages is above max_queued_bytes
The text was updated successfully, but these errors were encountered:
The conflict here is with max_queued_bytes and the lazy reconnect threshold. If you swap to normal bridge mode then it should start working again, and I'll see about fixing the lazy operation.
even after getting rid of the lazy start I faced similar issues. after so many tests with different configurations, I found that setting max_queued_messages to 0 caused bugs. and when set to a large enough number (in my case 1.000.000.000) it worked fine
My setup:
Device send mqtt data to the bridge.
Mosquitto broker v 2.0.11 configured as bridge, running on Windows 10
Mosquitto broker v 2.0.7 running on Windows server 2016
All messages are send with QoS 1
I test by enabling a firewall rule that does not allow connection to the port. (1884)
If the bridge loses the Internet connection (enable the firewall rule) to the other broker, then data is buffered in memory, and if the Internet connection is established before memory reaches max_queued_bytes (1000000), then all buffered datas are sent.
However, if the Internet connection is not established until max_queued_bytes is reached, it will never send any data. I have to stop the broker, remove the persistent file and restart the broker.
It looks like the broker never reconnect again, if the memory usages is above max_queued_bytes
The text was updated successfully, but these errors were encountered: