]> git.ipfire.org Git - thirdparty/bind9.git/commit
Handle double timeout in udp_cancel_read test
authorOndřej Surý <ondrej@isc.org>
Tue, 11 Oct 2022 07:06:37 +0000 (09:06 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 11 Oct 2022 13:01:35 +0000 (15:01 +0200)
commit02c42a20b7cabcdd44ee8afdda888a521444258e
treec9f437745cebca72c69a1565a308fb8734dfe50e
parentc61818f3cb95b854e5f9e71c5213744291073090
Handle double timeout in udp_cancel_read test

If sending took too long the isc_nm_read() could timeout twice, leading
to extra 'cread' counter in the udp_cancel_read test.  Increase the
cread counter only on ISC_R_EOF (canceled read) and deal with the
multiple ISC_R_TIMEOUTS gracefully.
tests/isc/udp_test.c