]> git.ipfire.org Git - thirdparty/bind9.git/commit
chg: nil: Improve reuse of outgoing TCP connections
authorMichał Kępień <michal@isc.org>
Sun, 29 Dec 2024 11:31:29 +0000 (11:31 +0000)
committerMichał Kępień <michal@isc.org>
Sun, 29 Dec 2024 11:31:29 +0000 (11:31 +0000)
commitdc90e977fc7ca8ee347f23cebc48dee501f8c4f9
tree3b60732ee9767ee0788d10aeebdc8fe42d0a5620
parent6eb77ed2b07de570102a6c2ac676a2d3a0eb43b8
parent086c325ad3f9b54b5db57e58b6e5960e7c6b288e
chg: nil: Improve reuse of outgoing TCP connections

This MR is a prerequisite for !8348.

It intentionally does not have a changelog entry associated with it, to
prevent making a false impression of improving connection reuse **for
existing code**.  It will only make a difference once !8348 gets merged
(and even then, only if the new `ISC_SOCKET_DETAILS` macro will be set
during build).  That's because `isc_nmhandle_localaddr()` currently
simply returns `handle->local` and its return value will only be set to
the actual address the socket is bound to with !8348 in place.

Note that `dns_dispatch_gettcp()` is currently only used by the
`dns_request` API, so this MR's potential for introducing new breakage
is relatively low.

Closes #4693

Merge branch '4693-improve-reuse-of-outgoing-tcp-connections' into 'main'

See merge request isc-projects/bind9!8972