Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] Broker backoff not working?

Using mosquitto v1.6.8 I'm having an issue getting the back-off attempt to work correctly. While I have `restart_timeout 5 1800` set it seems the broker never back's off and just stays at 5 second retrys. In this case I'm using cert's that where once valid in AWS IoT & then deleting those certs from IoT; Such that the mosquitto broker is no longer authorized to connect to IoT. I'd expect each connection failure attempt to backoff given this setting but the logging shows that the retry remains at a constant value. Can someone help point out what I'm doing wrong?

Here's what I see in the log's:
DEVICE# grep "Connecting bridge" /var/log/mosquitto.log | head -10
1584640927: Connecting bridge DEV123 (xxx.iot.us-west-2.amazonaws.com:8883)
1584640933: Connecting bridge DEV123 (xxx.iot.us-west-2.amazonaws.com:8883)
1584640939: Connecting bridge DEV123 (xxx.iot.us-west-2.amazonaws.com:8883)
1584640945: Connecting bridge DEV123 (xxx.iot.us-west-2.amazonaws.com:8883)
1584640951: Connecting bridge DEV123 (xxx.iot.us-west-2.amazonaws.com:8883)
1584640957: Connecting bridge DEV123 (xxx.iot.us-west-2.amazonaws.com:8883)
1584640963: Connecting bridge DEV123 (xxx.iot.us-west-2.amazonaws.com:8883)
1584640969: Connecting bridge DEV123 (xxx.iot.us-west-2.amazonaws.com:8883)
1584640975: Connecting bridge DEV123 (xxx.iot.us-west-2.amazonaws.com:8883)
1584640981: Connecting bridge DEV123 (xxx.iot.us-west-2.amazonaws.com:8883)
.... continues like this

Here's the full config:
user root
connection xxxxxxx
address xxx.iot.us-west-2.amazonaws.com:8883
topic xxxx/# both 1
bridge_protocol_version mqttv311
bridge_insecure false
cleansession false
notifications false
restart_timeout 5 1800
remote_clientid xxx123/remote
local_clientid xxx567/local
start_type automatic
try_private false
bridge_cafile /mnt/flash/xxx
bridge_certfile /mnt/flash/xxx
bridge_keyfile /mnt/flash/xxx
bridge_tls_version tlsv1.2
log_dest stdout
log_type all
log_timestamp true
persistence true
persistence_file /tmp/mosquitto.db
listener 1883 127.0.0.1
protocol mqtt
listener 8000  127.0.0.1
protocol websockets

Thanks

Back to the top