]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Properly increase the HTTP connections counter w/ nghttp2
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 28 Mar 2024 10:24:44 +0000 (11:24 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 28 Mar 2024 10:24:44 +0000 (11:24 +0100)
pdns/dnsdistdist/dnsdist-nghttp2-in.cc

index 3de909998996507301c2cb72e6c3650fc4fe5e7b..81c09870c59696b11584427bc3c3be07fa342cc4 100644 (file)
@@ -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);