auto mplexer = std::unique_ptr<FDMultiplexer>(FDMultiplexer::getMultiplexerSilent());
auto states = g_dstates.getLocal(); // this points to the actual shared_ptrs!
for(auto& dss : *states) {
- if (dss->d_nextCheck > 0) {
+ if (dss->d_nextCheck > 1) {
--dss->d_nextCheck;
continue;
}
infolog("Error receiving health check response from %s: %s", data->d_ds->d_config.remote.toStringWithPort(), stringerror());
}
updateHealthCheckResult(data->d_ds, data->d_initial, false);
+ return;
}
/* we are using a connected socket but hey.. */
infolog("Invalid health check response received from %s, expecting one from %s", from.toStringWithPort(), data->d_ds->d_config.remote.toStringWithPort());
}
updateHealthCheckResult(data->d_ds, data->d_initial, false);
+ return;
}
updateHealthCheckResult(data->d_ds, data->d_initial, handleResponse(data));