bind9/lib
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
..
dns Keep idle reused outgoing TCP connections under read 2026-06-24 13:52:46 +02:00
isc ignore 0-byte reads in the TCP read callback 2026-06-22 09:33:38 +03:00
isccc switch isc_md_type_t to a proper enum 2026-02-02 11:12:55 +03:00
isccfg Fix double initialization in copy_tuple() 2026-06-22 14:18:59 +00:00
ns Merge tag 'v9.21.23' 2026-06-17 13:48:49 +00:00
.gitignore
meson.build replace the build system with meson 2025-06-11 10:30:12 +03:00