mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-11 02:30:44 -04:00
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:
parent
ef81775e7b
commit
98c8135692
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue