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:
committed by
Arаm Sаrgsyаn
parent
ef81775e7b
commit
98c8135692
@@ -3501,6 +3501,8 @@ getinput(void *arg) {
|
|||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv) {
|
main(int argc, char **argv) {
|
||||||
|
uint32_t timeoutms;
|
||||||
|
|
||||||
style = &dns_master_style_debug;
|
style = &dns_master_style_debug;
|
||||||
|
|
||||||
input = stdin;
|
input = stdin;
|
||||||
@@ -3523,6 +3525,10 @@ main(int argc, char **argv) {
|
|||||||
|
|
||||||
parse_args(argc, 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();
|
setup_system();
|
||||||
|
|
||||||
isc_loopmgr_setup(loopmgr, getinput, NULL);
|
isc_loopmgr_setup(loopmgr, getinput, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user