From: Remi Gacogne Date: Wed, 20 Oct 2021 13:58:49 +0000 (+0200) Subject: dnsdist: Fix an issue with the connection count when reconnect failed X-Git-Tag: rec-4.6.0-beta1~28^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f43e65efe6907016eecb8372ec697ee165babdd;p=thirdparty%2Fpdns.git dnsdist: Fix an issue with the connection count when reconnect failed --- diff --git a/pdns/dnsdistdist/dnsdist-tcp-downstream.cc b/pdns/dnsdistdist/dnsdist-tcp-downstream.cc index 505415e7e6..0ec6ea5d23 100644 --- a/pdns/dnsdistdist/dnsdist-tcp-downstream.cc +++ b/pdns/dnsdistdist/dnsdist-tcp-downstream.cc @@ -57,6 +57,7 @@ bool ConnectionToBackend::reconnect() } d_handler->close(); d_ioState.reset(); + d_handler.reset(); --d_ds->tcpCurrentConnections; }