]> git.ipfire.org Git - thirdparty/bind9.git/commit
restore allowance for tcp-clients < interfaces
authorEvan Hunt <each@isc.org>
Fri, 5 Apr 2019 23:26:19 +0000 (16:26 -0700)
committerEvan Hunt <each@isc.org>
Sat, 6 Apr 2019 01:33:17 +0000 (18:33 -0700)
commitd01023aaac35543daffbdf48464e320150235d41
tree443459310d85a0db1fd6a6c7b49de2913a57be2b
parent13f7c918b8720d890408f678bd73c20e634539d9
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 0b4e2cd4c3192ba88569dd344f542a8cc43742b5)
bin/named/client.c
doc/arm/Bv9ARM-book.xml