]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix TCP dispatches and transport
authorMark Andrews <marka@isc.org>
Tue, 15 Oct 2024 05:09:48 +0000 (16:09 +1100)
committerMark Andrews <marka@isc.org>
Thu, 24 Oct 2024 00:41:18 +0000 (11:41 +1100)
commitbaab8a5d759e03a048bd1e71e12491026a3fb8ab
tree7115c3468397a3548d47dee56dde7d2e74e521cf
parente1588022c156d5b3162839551759039d933d18cf
Fix TCP dispatches and transport

Dispatch needs to know the transport that is being used over the
TCP connection to correctly allow for it to be reused.  Add a
transport parameter to dns_dispatch_createtcp and dns_dispatch_gettcp
and use it when selecting a TCP socket for reuse.
lib/dns/dispatch.c
lib/dns/include/dns/dispatch.h
lib/dns/request.c
lib/dns/resolver.c
lib/dns/xfrin.c
tests/dns/dispatch_test.c