From e5f917ccbc2d7f8284ce70c3842a3576c6512d12 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 9 Sep 2020 17:21:28 +0200 Subject: [PATCH] dnsdist: Fix the accounting of 'active' connections --- pdns/dnsdistdist/dnsdist-tcp-downstream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdistdist/dnsdist-tcp-downstream.cc b/pdns/dnsdistdist/dnsdist-tcp-downstream.cc index 03a4c41b24..0a5a11b1df 100644 --- a/pdns/dnsdistdist/dnsdist-tcp-downstream.cc +++ b/pdns/dnsdistdist/dnsdist-tcp-downstream.cc @@ -440,9 +440,9 @@ IOState TCPConnectionToBackend::handleResponse(std::shared_ptrsecond.d_idstate); + d_pendingResponses.erase(it); DEBUGLOG("passing response to client connection for "<handleResponse(clientConn, now, TCPResponse(std::move(d_responseBuffer), std::move(ids), conn)); - d_pendingResponses.erase(it); if (!d_pendingQueries.empty()) { DEBUGLOG("still have some queries to send"); -- 2.47.3