mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-16 02:42:53 -04:00
nsupdate: when set to 0, UDP timeout should be calculated by dns_request
The manual page of nsupdate's '-u udptimeout' option states that, quote: > If zero, the interval is computed from the timeout interval and number > of UDP retries. However, nsupdate sets the UDP timeout value to UINT_MAX when it is 0, thus, not behaving as documented. Let dns_request_create() calculate the UDP timeout, if it was set to 0.
This commit is contained in:
parent
5ce2ed0688
commit
0ef11c0ccb
1 changed files with 0 additions and 3 deletions
|
|
@ -1243,9 +1243,6 @@ parse_args(int argc, char **argv) {
|
|||
isc_commandline_argument);
|
||||
exit(1);
|
||||
}
|
||||
if (udp_timeout == 0) {
|
||||
udp_timeout = UINT_MAX;
|
||||
}
|
||||
break;
|
||||
case 'r':
|
||||
result = isc_parse_uint32(&udp_retries,
|
||||
|
|
|
|||
Loading…
Reference in a new issue