I have a mosquitto Broker B1 running on a Windows 10 machine, that has few mqtt clients, and another broker B2 running on Linux Cloud VM.
B1 is bridged to B2 on port 61883
Sometimes, The bridge connection does not reconnectes until I restart the Windows 10 machine.
Here is my mosquitto.conf file:
=================================================================
General configuration
=================================================================
max_keepalive 65535
max_packet_size 268435455
max_queued_messages 0
persistent_client_expiration 1d
queue_qos0_messages true
=================================================================
Listeners
=================================================================
listener 1883
=================================================================
Persistence
=================================================================
autosave_interval 120
autosave_on_changes true
persistence true
persistence_file mosquitto.db
persistence_location C:\Program Files\mosquitto
=================================================================
Security
=================================================================
allow_anonymous true
=================================================================
Bridges
=================================================================
connection bridge-vmbroker
address #####.westus.cloudapp.azure.com:61883
topic # both 0
cleansession false
notifications false
remote_password #####
remote_username #####