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.
This commit is contained in:
Aram Sargsyan 2023-03-31 12:25:01 +00:00 committed by Arаm Sаrgsyаn
parent ef81775e7b
commit 98c8135692

View file

@ -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);