]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Release incoming TCP connection right away on backend failure 14016/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 29 Mar 2024 13:22:40 +0000 (14:22 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 2 Apr 2024 10:03:28 +0000 (12:03 +0200)
commit81bac602d88e0470874f4b2f4a364a783d417ee8
tree951292f3bc0ffa575f01cfe0232bac37275494e6
parent54a03205dc1ca9a3ba91a00bea00c265d2e5827d
dnsdist: Release incoming TCP connection right away on backend failure

We used to keep a shared pointer to the incoming TCP connection around
in `TCPConnectionToBackend::d_currentQuery.d_sender` even after all queries
sent to the backend failed, which prevented the incoming TCP connection
from being closed as soon as it should have.

(cherry picked from commit 5e8f7194934857b1fd579c2ad68c56523d0e5941)
pdns/dnsdistdist/dnsdist-tcp-downstream.cc