]> git.ipfire.org Git - thirdparty/bind9.git/commit
ignore 0-byte reads in the TCP read callback 12261/head
authorAydın Mercan <aydin@isc.org>
Thu, 11 Jun 2026 13:38:27 +0000 (16:38 +0300)
committerAydın Mercan <aydin@isc.org>
Mon, 22 Jun 2026 06:33:38 +0000 (09:33 +0300)
commit20d3ef1643b2b5ab4ea2bdd115bb025c11fc33b0
tree2aaed63f95915139140ffb1f08607e197e024833
parent494874148de0ce5a4a30f6f63c7a1965b98e8322
ignore 0-byte reads in the TCP read callback

Callbacks for libuv stream reads do not signal zero-length reads as a
failure signal but rather as EAGAIN/EWOULDBLOCK. This can trigger an
assertion when a zero-length read is pushed onto a PROXYv2 endpoint that
has not yet processed the headers as it expects a non-NULL region of
positive length.
lib/isc/netmgr/tcp.c