]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix delv default timeout value
authorAram Sargsyan <aram@isc.org>
Tue, 11 Mar 2025 12:24:43 +0000 (12:24 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Wed, 23 Apr 2025 17:03:05 +0000 (17:03 +0000)
commite3417d55fdf29bd5285dae9dfe60d77f47022177
treec96ca6410d1fdb477e5caff2eb680c7a1997c35f
parent74a8acdc8dba2e682159a901d48894cfbb0f2457
Fix delv default timeout value

The isc_nm_getinitialtimeout() function (and also the previously used
isc_nm_gettimeouts() function) returns timeout value(s) in milliseconds,
while the dns_request_create() function expects timeout values in
seconds. Fix the bug by dividing the timeout value by MS_PER_SEC.

There is no added test, because it turns out delv doesn't support
setting custom timeout values (as opposed to what is suggested in
its man page). Tests should be added later when the '+timeout=T'
option is implemented.
bin/delv/delv.c