]> git.ipfire.org Git - thirdparty/bind9.git/commit
restore allowance for tcp-clients < interfaces
authorEvan Hunt <each@isc.org>
Fri, 22 Feb 2019 22:53:30 +0000 (14:53 -0800)
committerOndřej Surý <ondrej@sury.org>
Thu, 25 Apr 2019 14:32:05 +0000 (16:32 +0200)
commitd809ec6c14ca3b38c7466f82535c0fe5bfcb3e77
treefd377f049056862eef0db033c05f203093ea2b52
parent2f3876d187ab890588222803165d0f6857d5656c
restore allowance for tcp-clients < interfaces

in the "refactor tcpquota and pipeline refs" commit, the counting
of active interfaces was tightened in such a way that named could
fail to listen on an interface if there were more interfaces than
tcp-clients. when checking the quota to start accepting on an
interface, if the number of active clients was above zero, then
it was presumed that some other client was able to handle accepting
new connections. this, however, ignored the fact that the current client
could be included in that count, so if the quota was already exceeded
before all the interfaces were listening, some interfaces would never
listen.

we now check whether the current client has been marked active; if so,
then the number of active clients on the interface must be greater
than 1, not 0.

(cherry picked from commit 02365b87ea0b1ea5ea8b17376f6734c811c95e61)
(cherry picked from commit cae79e1bab677ed1c2ce3adc5d54163a78f0d30b)
doc/arm/Bv9ARM-book.xml
lib/ns/client.c