mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -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.
(cherry picked from commit 98c8135692)
This commit is contained in:
parent
1287b0b0e8
commit
a7d5ccdb1b
1 changed files with 6 additions and 0 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue