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: dnsdist-1.9.2~4^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3dc9eef33d59e562171ff55fa7ae39fe1de925ee;p=thirdparty%2Fpdns.git dnsdist: Properly increase the HTTP connections counter w/ nghttp2 (cherry picked from commit 5fea1763bc6e0e19412e40f029b11ae4d3d8a800) --- diff --git a/pdns/dnsdistdist/dnsdist-nghttp2-in.cc b/pdns/dnsdistdist/dnsdist-nghttp2-in.cc index ec5e5c45db..cbf91e6c32 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);