From: Remi Gacogne Date: Mon, 2 Oct 2023 17:58:43 +0000 (+0200) Subject: dnsdist: Apply suggestion from Charles-Henri's code review (thanks!) X-Git-Tag: rec-5.0.0-alpha2~31^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0bf2607803e827ffd0638c28f34809d0a12cbbb5;p=thirdparty%2Fpdns.git dnsdist: Apply suggestion from Charles-Henri's code review (thanks!) --- 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 {