From: Remi Gacogne Date: Mon, 14 Sep 2020 09:41:01 +0000 (+0200) Subject: dnsdist: Decrement the number of pending queries on error X-Git-Tag: auth-4.5.0-alpha0~14^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da029f912057310e10f529313b3e5b04f080d698;p=thirdparty%2Fpdns.git dnsdist: Decrement the number of pending queries on error --- diff --git a/pdns/dnsdist-tcp.cc b/pdns/dnsdist-tcp.cc index 4fa26b39a1..e3e8d88ce3 100644 --- a/pdns/dnsdist-tcp.cc +++ b/pdns/dnsdist-tcp.cc @@ -798,6 +798,8 @@ void IncomingTCPConnectionState::handleIO(std::shared_ptr& state, IDState&& query, const struct timeval& now) { + --state->d_currentQueriesCount; + if (state->d_state == State::sendingResponse) { /* if we have responses to send, let's do that first */ }