bind9/bin
Ondřej Surý febeac215d Keep idle reused outgoing TCP connections under read
A reused TCP/TLS dispatch with no outstanding responses was left in the
reuse pool with no read pending, so a peer closing the idle connection
went unnoticed: the socket lingered in CLOSE-WAIT and the dead dispatch
was later handed to a new query, which failed and the fetch timed out.
Keep a read pending on an idle connected dispatch, bounded by an idle
timeout, so the close is seen promptly and the connection is dropped
from the pool instead of reused.

The idle read may only be (re)armed while the dispatch is still
connected; arming it on a dispatch that is already shutting down
re-reads a dying handle and double-schedules a netmgr job.

On shutdown, close the connection as soon as the dispatch reaches its
terminal state instead of waiting for the last reference to drop, so an
unexpected read (or a peer-side close) cannot leave the socket in
CLOSE-WAIT while a reference still lingers.
2026-06-24 13:52:46 +02:00
..
check Resolve ERR_MISSING_GLUE / ERR_EXTRA_AAAA value collision 2026-04-29 17:31:23 +02:00
confgen Allow any valid DNS name as a key name 2026-05-15 10:14:46 +02:00
delv Skip detach when delv's client never created 2026-04-30 10:56:11 +02:00
dig Replace the shared work pool with per-loop, per-lane worker threads 2026-06-17 19:07:08 +02:00
dnssec Check wildcard signer and NOQNAME signer match 2026-06-18 10:01:29 -07:00
include Remove NZF support, make LMDB required for new zone storage 2026-03-18 11:02:33 +01:00
named Keep idle reused outgoing TCP connections under read 2026-06-24 13:52:46 +02:00
nsupdate nsupdate does not handle zero length RDATA well 2026-04-09 09:24:47 +10:00
plugins Do not assert on synthrecord reverse mode with huge prefix 2026-06-04 13:51:59 +02:00
rndc Dump delegation database in 'rndc dumpdb' 2026-03-30 20:41:13 +02:00
tests Fail the fetch when a response fails the TSIG signature check 2026-06-24 12:18:19 +02:00
tools Disallow configuration of user-defined non-IN class views 2026-06-08 17:50:15 +02:00
meson.build replace the build system with meson 2025-06-11 10:30:12 +03:00