]> git.ipfire.org Git - thirdparty/bind9.git/commit
Gracefully handle uv_read_start() failures
authorOndřej Surý <ondrej@isc.org>
Tue, 14 Jun 2022 07:17:08 +0000 (09:17 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 14 Jun 2022 09:55:03 +0000 (11:55 +0200)
commit6cfab7e4f737803e0fc686ea7b7be0d9215489c2
tree0896084679875727bb3b042d40194aa85615defc
parent0e90fa4234b3e62cf307afb9ea230c3bcc3831e1
Gracefully handle uv_read_start() failures

Under specific rare timing circumstances the uv_read_start() could
fail with UV_EINVAL when the connection is reset between the connect (or
accept) and the uv_read_start() call on the nmworker loop.  Handle such
situation gracefully by propagating the errors from uv_read_start() into
upper layers, so the socket can be internally closed().

(cherry picked from commit b432d5d3bcccf199141564b6a87d2cdac296ed7e)
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/udp.c