From 98c8135692d30f8737810db2e6dfd5d34ffd8011 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. --- bin/nsupdate/nsupdate.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index 7a092a3c33..c4f16ae03a 100644 --- a/bin/nsupdate/nsupdate.c +++ b/bin/nsupdate/nsupdate.c @@ -3501,6 +3501,8 @@ getinput(void *arg) { int main(int argc, char **argv) { + uint32_t timeoutms; + style = &dns_master_style_debug; input = stdin; @@ -3523,6 +3525,10 @@ main(int argc, char **argv) { parse_args(argc, argv); + /* Set the network manager timeouts in milliseconds. */ + timeoutms = timeout * 1000; + isc_nm_settimeouts(netmgr, timeoutms, timeoutms, timeoutms, timeoutms); + setup_system(); isc_loopmgr_setup(loopmgr, getinput, NULL);