bind9/lib
Ondřej Surý eac8bc5c1a
Prevent unexpected UDP client read callbacks
The network manager UDP code was misinterpreting when the libuv called
the udp_recv_cb with nrecv == 0 and addr == NULL -> this doesn't really
mean that the "stream" has ended, but the libuv indicates that the
receive buffer can be freed.  This could lead to assertion failure in
the code that calls isc_nm_read() from the network manager read callback
due to the extra spurious callbacks.

Properly handle the extra callback calls from the libuv in the client
read callback, and refactor the UDP isc_nm_read() implementation to be
synchronous, so no datagram is lost between the time that we stop the
reading from the UDP socket and we restart it again in the asychronous
udpread event.

Add a unit test that tests the isc_nm_read() call from the read
callback to receive two datagrams.
2022-09-19 12:20:41 +02:00
..
bind9 Add extended DNS error configuration option for RPZ zones 2022-08-31 08:56:03 +00:00
dns Emit key algorithm + key id in dnssec signing statsistics 2022-09-15 08:42:45 +10:00
irs Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
isc Prevent unexpected UDP client read callbacks 2022-09-19 12:20:41 +02:00
isccc Consolidate some ASCII tables in isc/ascii and isc/hex 2022-09-12 12:18:57 +01:00
isccfg flag "random-device" as ancient 2022-09-14 09:36:58 -07:00
ns fix an incorrect detach in update processing 2022-09-15 10:33:42 -07:00
.gitignore The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
Makefile.am move samples/resolve.c to bin/tests/system 2021-04-16 14:29:43 +02:00