]> 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>
Tue, 2 Apr 2024 09:11:19 +0000 (11:11 +0200)
(cherry picked from commit 5fea1763bc6e0e19412e40f029b11ae4d3d8a800)

pdns/dnsdistdist/dnsdist-nghttp2-in.cc

index ec5e5c45dbbe037005d05e94a1059e4bd46028a6..cbf91e6c320f63e52aaaaed6ff8ab60963f7963f 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);