From: Remi Gacogne Date: Wed, 27 Oct 2021 07:25:47 +0000 (+0200) Subject: dnsdist: Do not try to reconnect UDP sockets for TCP-only backends X-Git-Tag: rec-4.6.0-beta1~28^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10862%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Do not try to reconnect UDP sockets for TCP-only backends --- diff --git a/pdns/dnsdistdist/dnsdist-healthchecks.cc b/pdns/dnsdistdist/dnsdist-healthchecks.cc index 56631b8aaa..ec9ab9902f 100644 --- a/pdns/dnsdistdist/dnsdist-healthchecks.cc +++ b/pdns/dnsdistdist/dnsdist-healthchecks.cc @@ -94,7 +94,7 @@ void updateHealthCheckResult(const std::shared_ptr& dss, bool i if (newState != dss->upStatus) { warnlog("Marking downstream %s as '%s'", dss->getNameWithAddr(), newState ? "up" : "down"); - if (newState && (!dss->connected || dss->reconnectOnUp)) { + if (newState && !dss->isTCPOnly() && (!dss->connected || dss->reconnectOnUp)) { newState = dss->reconnect(); if (dss->connected && !dss->threadStarted.test_and_set()) {