From: Remi Gacogne Date: Fri, 2 Oct 2020 13:44:38 +0000 (+0200) Subject: dnsdist: Mark the TCP downstream connection as fresh after reconnecting X-Git-Tag: auth-4.5.0-alpha0~14^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd7d9f38cbbddfa92a23db61687f3e8342597b75;p=thirdparty%2Fpdns.git dnsdist: Mark the TCP downstream connection as fresh after reconnecting --- diff --git a/pdns/dnsdistdist/dnsdist-tcp-downstream.cc b/pdns/dnsdistdist/dnsdist-tcp-downstream.cc index 2864c706d6..1d5271360a 100644 --- a/pdns/dnsdistdist/dnsdist-tcp-downstream.cc +++ b/pdns/dnsdistdist/dnsdist-tcp-downstream.cc @@ -321,6 +321,8 @@ bool TCPConnectionToBackend::reconnect() --d_ds->tcpCurrentConnections; } + d_fresh = true; + do { vinfolog("TCP connecting to downstream %s (%d)", d_ds->getNameWithAddr(), d_downstreamFailures); DEBUGLOG("Opening TCP connection to backend "<getNameWithAddr());