Merge pull request #2485 from abiliojr/fix_default_bridge_backoff

fix default bridge backoff periods (scale seconds to milliseconds)
pull/2517/head
Roger Light 4 years ago committed by GitHub
commit b39526a998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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