]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Release incoming TCP connection right away on backend failure 14005/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 29 Mar 2024 13:22:40 +0000 (14:22 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 29 Mar 2024 13:22:40 +0000 (14:22 +0100)
commit5e8f7194934857b1fd579c2ad68c56523d0e5941
tree55b5505bb3b35faa40677581e2b34ee2dde38e5d
parent2f7dc1ce669c10d632ef748ccad2bba11f5c3610
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.
pdns/dnsdistdist/dnsdist-tcp-downstream.cc