@cryptotaxi247 / netdata-1 / commits / dd3f95d2a

fix runtime reclaim (aclk_kill_link) reconnect loop (#12074)

Timotej S committed Feb 2, 2022 at 19:59 UTC dd3f95d2a1dcf437c0f9d6a50f7c07eb1c99721b
1 file changed +4
aclk/aclk.c
+4
@@ -321,7 +321,11 @@ static int handle_connection(mqtt_wss_client client)
321 }
322
323 if (disconnect_req || aclk_kill_link) {
324 + info("Going to restart connection due to disconnect_req=%s (cloud req), aclk_kill_link=%s (reclaim)",
325 + disconnect_req ? "true" : "false",
326 + aclk_kill_link ? "true" : "false");
327 disconnect_req = 0;
328 + aclk_kill_link = 0;
329 aclk_graceful_disconnect(client);
330 aclk_queue_unlock();
331 aclk_shared_state.mqtt_shutdown_msg_id = -1;