From a7d5ccdb1bfa0b95479eed6e0d05a9cf532ce90f Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Fri, 31 Mar 2023 12:25:01 +0000 Subject: [PATCH] nsupdate: set network manager default timeout values The default values are currently set to 30 seconds, use nsupdate default (or overriden using the -t option) timeout value instead. (cherry picked from commit 98c8135692d30f8737810db2e6dfd5d34ffd8011) --- bin/nsupdate/nsupdate.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index 7d52ecfdc7..7cb8d201ea 100644 --- a/bin/nsupdate/nsupdate.c +++ b/bin/nsupdate/nsupdate.c @@ -3394,6 +3394,8 @@ getinput(isc_task_t *task, isc_event_t *event) { int main(int argc, char **argv) { isc_result_t result; + uint32_t timeoutms; + style = &dns_master_style_debug; input = stdin; @@ -3420,6 +3422,10 @@ main(int argc, char **argv) { setup_system(); + /* Set the network manager timeouts in milliseconds. */ + timeoutms = timeout * 1000; + isc_nm_settimeouts(netmgr, timeoutms, timeoutms, timeoutms, timeoutms); + result = isc_app_onrun(gmctx, global_task, getinput, NULL); check_result(result, "isc_app_onrun");