]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix an issue with the connection count when reconnect failed
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 20 Oct 2021 13:58:49 +0000 (15:58 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 26 Oct 2021 15:07:19 +0000 (17:07 +0200)
pdns/dnsdistdist/dnsdist-tcp-downstream.cc

index 505415e7e6f2192c84a4193f6a46c36ff3697d55..0ec6ea5d23226241336ee4e1968908ad7aef3a7e 100644 (file)
@@ -57,6 +57,7 @@ bool ConnectionToBackend::reconnect()
     }
     d_handler->close();
     d_ioState.reset();
+    d_handler.reset();
     --d_ds->tcpCurrentConnections;
   }