]> git.ipfire.org Git - thirdparty/bind9.git/commit
refactor tcpquota and pipeline refs; allow special-case overrun in isc_quota
authorEvan Hunt <each@isc.org>
Wed, 6 Feb 2019 19:27:11 +0000 (11:27 -0800)
committerOndřej Surý <ondrej@sury.org>
Thu, 25 Apr 2019 15:02:43 +0000 (17:02 +0200)
commit43aec6ee0f2804cd73e941a03c56fbd9c71ae326
tree8cc46cfb7f749916f2b1211f1964f6e9607a2e0b
parent8141be26334458da0086c4ddd6a791da912e85f5
refactor tcpquota and pipeline refs; allow special-case overrun in isc_quota

- if the TCP quota has been exceeded but there are no clients listening
  for new connections on the interface, we can now force attachment to the
  quota using isc_quota_force(), instead of carrying on with the quota not
  attached.
- the TCP client quota is now referenced via a reference-counted
  'ns_tcpconn' object, one of which is created whenever a client begins
  listening for new connections, and attached to by members of that
  client's pipeline group. when the last reference to the tcpconn
  object is detached, it is freed and the TCP quota slot is released.
- reduce code duplication by adding mark_tcp_active() function
- convert counters to atomic

(cherry picked from commit 7e8222378ca24f1302a0c1c638565050ab04681b)
(cherry picked from commit 86a7d4c175ea394b03f0fb6e36b36a0af711e680)
lib/isc/include/isc/quota.h
lib/isc/quota.c
lib/isc/win32/libisc.def.in
lib/ns/client.c
lib/ns/include/ns/client.h
lib/ns/include/ns/interfacemgr.h
lib/ns/interfacemgr.c