From: Remi Gacogne Date: Thu, 28 Mar 2024 10:24:44 +0000 (+0100) Subject: dnsdist: Properly increase the HTTP connections counter w/ nghttp2 X-Git-Tag: rec-5.1.0-alpha1~74^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fea1763bc6e0e19412e40f029b11ae4d3d8a800;p=thirdparty%2Fpdns.git dnsdist: Properly increase the HTTP connections counter w/ nghttp2 --- diff --git a/pdns/dnsdistdist/dnsdist-nghttp2-in.cc b/pdns/dnsdistdist/dnsdist-nghttp2-in.cc index 3de9099989..81c09870c5 100644 --- a/pdns/dnsdistdist/dnsdist-nghttp2-in.cc +++ b/pdns/dnsdistdist/dnsdist-nghttp2-in.cc @@ -347,6 +347,9 @@ void IncomingHTTP2Connection::handleIO() } if (d_state == State::starting) { + if (d_ci.cs != nullptr && d_ci.cs->dohFrontend != nullptr) { + ++d_ci.cs->dohFrontend->d_httpconnects; + } if (d_ci.cs != nullptr && d_ci.cs->d_enableProxyProtocol && isProxyPayloadOutsideTLS() && expectProxyProtocolFrom(d_ci.remote)) { d_state = State::readingProxyProtocolHeader; d_buffer.resize(s_proxyProtocolMinimumHeaderSize);