]> git.ipfire.org Git - thirdparty/bind9.git/commit
Implement seamless TCP connection reuse in dns_dispatch
authorOndřej Surý <ondrej@isc.org>
Tue, 17 Feb 2026 10:05:33 +0000 (11:05 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 14 Apr 2026 15:48:13 +0000 (17:48 +0200)
commitd5ee86b799893096b7e95e6426459fae3cf7ef00
tree85bf62dbfd4ddb71303d5b7f7b32bd05eb328d21
parent09a4b8030100d6989e6846425a28264777176501
Implement seamless TCP connection reuse in dns_dispatch

Previously, the user of dns_dispatch API had to first call
dns_dispatch_gettcp() and if that failed create a new TCP dispatch with
dns_dispatch_createtcp().  This has been changed and the TCP connection
reuse happens transparently inside dns_dispatch_createtcp().  There are
separate buckets for dns_resolver, dns_request and dns_xfrin units, so
these don't get mixed together.
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