From 59faa9239b5d1fdef7a8a8e3e3b55b54af250fa6 Mon Sep 17 00:00:00 2001 From: Stephane Bakhos Date: Fri, 26 Jun 2020 00:24:57 -0400 Subject: [PATCH] Closes #5220 Force a reconnection when a downstream transitions to the UP state --- pdns/dnsdistdist/dnsdist-healthchecks.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.47.3