]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Only account TLS conns once we know if they were resumed
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 7 May 2026 16:00:42 +0000 (18:00 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 11 May 2026 09:22:06 +0000 (11:22 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist-concurrent-connections.cc

index 2097c25ce2705b5aa9e49a257e58455060a093cb..ceae66659c23c50503f3680ba34058638c10dc29 100644 (file)
@@ -96,7 +96,7 @@ static bool checkTCPConnectionsRate(const boost::circular_buffer<ClientActivity>
   }
   uint64_t bucketsConsidered = 0;
   uint64_t connectionsSeen = 1U; /* the current one */
-  uint64_t tlsNewSeen = isTLS ? 1U : 0U;
+  uint64_t tlsNewSeen = 0U;
   uint64_t tlsResumedSeen = 0;
   const auto cutOff = static_cast<time_t>(now - (interval * 60)); // interval is in minutes
   for (const auto& entry : activity) {