]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Mark the TCP downstream connection as fresh after reconnecting
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 2 Oct 2020 13:44:38 +0000 (15:44 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 10 Nov 2020 08:52:23 +0000 (09:52 +0100)
pdns/dnsdistdist/dnsdist-tcp-downstream.cc

index 2864c706d6072eac25d0b821fc338d127aa2fd7e..1d5271360a80cc42e1aee7ede6a2f047a0e9e5ea 100644 (file)
@@ -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 "<<d_ds->getNameWithAddr());