]> git.ipfire.org Git - thirdparty/bind9.git/commit
enable keepalive when the keepalive EDNS option is seen
authorEvan Hunt <each@isc.org>
Tue, 3 Nov 2020 02:33:20 +0000 (18:33 -0800)
committerEvan Hunt <each@isc.org>
Fri, 27 Aug 2021 16:56:51 +0000 (09:56 -0700)
commit7867b8b57d60d93da3f5f15f0a049fba5fbff35a
treea78ed558e2744fb6b4fecaa7b6a12432d3b7b859
parent19e24e22f5fb89a80468f222c8bbd1f8b0235be3
enable keepalive when the keepalive EDNS option is seen

previously, receiving a keepalive option had no effect on how
long named would keep the connection open; there was a place to
configure the keepalive timeout but it was never used. this commit
corrects that.

this also fixes an error in isc__nm_{tcp,tls}dns_keepalive()
in which the sense of a REQUIRE test was reversed; previously this
error had not been noticed because the functions were not being
used.
lib/isc/include/isc/netmgr.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/tlsdns.c
lib/ns/client.c