From: Ondřej Surý Date: Thu, 10 Feb 2022 07:42:22 +0000 (+0100) Subject: Update writetimeout to be T_IDLE in netmgr_test.c X-Git-Tag: v9.19.0~111^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee359d6ffa701e5f9781ec75622af22736506bdd;p=thirdparty%2Fbind9.git Update writetimeout to be T_IDLE in netmgr_test.c Use the isc_nmhandle_setwritetimeout() function in the netmgr unit test to allow more time for writing and reading the responses because some of the intervals that are used in the unit tests are really small leaving a little room for any delays. --- diff --git a/lib/isc/tests/netmgr_test.c b/lib/isc/tests/netmgr_test.c index 824668d4bad..b27c095b7d1 100644 --- a/lib/isc/tests/netmgr_test.c +++ b/lib/isc/tests/netmgr_test.c @@ -437,6 +437,7 @@ connect_send(isc_nmhandle_t *handle) { isc_nmhandle_t *sendhandle = NULL; isc_refcount_increment0(&active_csends); isc_nmhandle_attach(handle, &sendhandle); + isc_nmhandle_setwritetimeout(handle, T_IDLE); if (atomic_fetch_sub(&nsends, 1) > 1) { isc_nm_send(sendhandle, (isc_region_t *)&send_msg, connect_send_cb, NULL); @@ -548,6 +549,7 @@ listen_read_cb(isc_nmhandle_t *handle, isc_result_t eresult, isc_nmhandle_t *sendhandle = NULL; isc_nmhandle_attach(handle, &sendhandle); isc_refcount_increment0(&active_ssends); + isc_nmhandle_setwritetimeout(sendhandle, T_IDLE); isc_nm_send(sendhandle, (isc_region_t *)&send_msg, listen_send_cb, cbarg); }