]> git.ipfire.org Git - thirdparty/bind9.git/commit
Change the isc_nm_(get|set)timeouts() to work with milliseconds
authorOndřej Surý <ondrej@sury.org>
Thu, 18 Mar 2021 10:16:45 +0000 (11:16 +0100)
committerOndřej Surý <ondrej@sury.org>
Thu, 18 Mar 2021 15:37:57 +0000 (16:37 +0100)
commit36ddefacb48d06e959fb2f768f7ca10df5bfbab9
treec75cf96e7d1cd83568981dfc98821835e2ccdb1f
parent1ef232f93d9739bdb5ff44428d79165b8f31559b
Change the isc_nm_(get|set)timeouts() to work with milliseconds

The RFC7828 specifies the keepalive interval to be 16-bit, specified in
units of 100 milliseconds and the configuration options tcp-*-timeouts
are following the suit.  The units of 100 milliseconds are very
unintuitive and while we can't change the configuration and presentation
format, we should not follow this weird unit in the API.

This commit changes the isc_nm_(get|set)timeouts() functions to work
with milliseconds and convert the values to milliseconds before passing
them to the function, not just internally.
bin/named/server.c
lib/isc/include/isc/netmgr.h
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/tests/tcpdns_test.c
lib/isc/tests/tlsdns_test.c
lib/ns/client.c