fix default bridge backoff periods (scale seconds to milliseconds)

Signed-off-by: Abilio Marques <abiliojr@gmail.com>
pull/2485/head
Abilio Marques 4 years ago
parent 7939633114
commit bca4a7fca6

@ -889,7 +889,7 @@ static void bridge__update_backoff(struct mosquitto__bridge *bridge)
bridge->connected_at = 0;
log__printf(NULL, MOSQ_LOG_INFO, "Bridge %s next backoff will be %d", bridge->name, bridge->restart_timeout);
log__printf(NULL, MOSQ_LOG_INFO, "Bridge %s next backoff will be %d ms", bridge->name, bridge->restart_timeout);
}
static void bridge_check_pending(struct mosquitto *context)

@ -1509,8 +1509,8 @@ static int config__read_file_core(struct mosquitto__config *config, bool reload,
cur_bridge->start_type = bst_automatic;
cur_bridge->idle_timeout = 60;
cur_bridge->restart_timeout = 0;
cur_bridge->backoff_base = 5;
cur_bridge->backoff_cap = 30;
cur_bridge->backoff_base = 5 * 1000;
cur_bridge->backoff_cap = 30 * 1000;
cur_bridge->stable_connection_period = 0;
cur_bridge->threshold = 10;
cur_bridge->try_private = true;

Loading…
Cancel
Save