]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix the number of concurrent queries on a backend TCP conn 12622/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 23 Jun 2022 10:36:17 +0000 (12:36 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 6 Mar 2023 15:37:08 +0000 (16:37 +0100)
commiteae4a2586924b63b887c3b77194121b62f4a1399
tree7eec413d3721fc3a46d1a10d0275271b08d5b3e5
parent96fc348dac7b30b5044f8eb74ada909c1b88905b
dnsdist: Fix the number of concurrent queries on a backend TCP conn

When we are in the process of sending a query to the backend, that
query is no longer accounted in the "queued" queries nor it is in
the "queued" responses, but we need to take it into account.
Otherwise we might be sending two concurrent queries to a backend
that does not support out-of-order processing (increasing our
latency), or even worse to one that does not support pipelining.

(cherry picked from commit 2848406e55b5a1d2e35bfa9f7c4dbb0c49989a1b)
pdns/dnsdistdist/dnsdist-tcp-downstream.hh