From: Stephane Bakhos Date: Fri, 26 Jun 2020 04:24:57 +0000 (-0400) Subject: Closes #5220 X-Git-Tag: rec-4.4.0-beta1~50^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59faa9239b5d1fdef7a8a8e3e3b55b54af250fa6;p=thirdparty%2Fpdns.git Closes #5220 Force a reconnection when a downstream transitions to the UP state --- diff --git a/pdns/dnsdistdist/dnsdist-healthchecks.cc b/pdns/dnsdistdist/dnsdist-healthchecks.cc index 05ea151717..5b9716c504 100644 --- a/pdns/dnsdistdist/dnsdist-healthchecks.cc +++ b/pdns/dnsdistdist/dnsdist-healthchecks.cc @@ -60,7 +60,7 @@ void updateHealthCheckResult(const std::shared_ptr& dss, bool n if(newState != dss->upStatus) { warnlog("Marking downstream %s as '%s'", dss->getNameWithAddr(), newState ? "up" : "down"); - if (newState && !dss->connected) { + if (newState) { newState = dss->reconnect(); if (dss->connected && !dss->threadStarted.test_and_set()) {