]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix tcp-highwater stats updating
authorDiego Fronza <diego@isc.org>
Mon, 25 Nov 2019 21:36:14 +0000 (18:36 -0300)
committerEvan Hunt <each@isc.org>
Thu, 12 Dec 2019 19:23:10 +0000 (11:23 -0800)
commited9853e73932e68ad6090efba80f717a9797bfb6
treebda47ef6f9a6ddd82996108b7db97eed5cdc7be5
parentead7b3dc539f5edc867a4123a1a189364fcfe0df
Fix tcp-highwater stats updating

After the network manager rewrite, tcp-higwater stats was only being
updated when a valid DNS query was received over tcp.

It turns out tcp-quota is updated right after a tcp connection is
accepted, before any data is read, so in the event that some client
connect but don't send a valid query, it wouldn't be taken into
account to update tcp-highwater stats, that is wrong.

This commit fix tcp-highwater to update its stats whenever a tcp connection
is established, independent of what happens after (timeout/invalid
request, etc).
lib/isc/include/isc/netmgr.h
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/tcpdns.c
lib/ns/client.c
lib/ns/include/ns/client.h
lib/ns/interfacemgr.c