From 0bf2607803e827ffd0638c28f34809d0a12cbbb5 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 2 Oct 2023 19:58:43 +0200 Subject: [PATCH] dnsdist: Apply suggestion from Charles-Henri's code review (thanks!) --- pdns/dnsdistdist/dnsdist-nghttp2-in.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdistdist/dnsdist-nghttp2-in.cc b/pdns/dnsdistdist/dnsdist-nghttp2-in.cc index 0302d536fe..432e9f22c9 100644 --- a/pdns/dnsdistdist/dnsdist-nghttp2-in.cc +++ b/pdns/dnsdistdist/dnsdist-nghttp2-in.cc @@ -1198,7 +1198,7 @@ void IncomingHTTP2Connection::updateIO(IOState newState, const FDMultiplexer::ca if (newState == IOState::NeedRead) { /* use the idle TTL if the handshake has been completed (and proxy protocol payload received, if any), and we have processed at least one query, otherwise we use the shorter read TTL */ - if ((d_state == State::waitingForQuery || d_state == State::idle) && (d_queriesCount > 0 || d_currentQueriesCount)) { + if ((d_state == State::waitingForQuery || d_state == State::idle) && (d_queriesCount > 0 || d_currentQueriesCount > 0)) { ttd = getIdleClientReadTTD(now); } else { -- 2.47.2