bind9/bin/tools
Evan Hunt f439eb5d99 Dispatch API simplification
- Many dispatch attributes can be set implicitly instead of being passed
  in. we can infer whether to set DNS_DISPATCHATTR_TCP or _UDP from
  whether we're calling dns_dispatch_createtcp() or _createudp().  we
  can also infer DNS_DISPATCHATTR_IPV4 or _IPV6 from the addresses or
  the socket that were passed in.

- We no longer use dup'd sockets in UDP dispatches, so the 'dup_socket'
  parameter has been removed from dns_dispatch_createudp(), along with
  the code implementing it. also removed isc_socket_dup() since it no
  longer has any callers.

- The 'buffersize' parameter was ignored and has now been removed;
  buffersize is now fixed at 4096.

- Maxbuffers and maxrequests don't need to be passed in on every call to
  dns_dispatch_createtcp() and _createudp().

  In all current uses, the value for mgr->maxbuffers will either be
  raised once from its default of 20000 to 32768, or else left
  alone. (passing in a value lower than 20000 does not lower it.) there
  isn't enough difference between these values for there to be any need
  to configure this.

  The value for disp->maxrequests controls both the quota of concurrent
  requests for a dispatch and also the size of the dispatch socket
  memory pool. it's not clear that this quota is necessary at all. the
  memory pool size currently starts at 32768, but is sometimes lowered
  to 4096, which is definitely unnecessary.

  This commit sets both values permanently to 32768.

- Previously TCP dispatches allocated their own separate QID table,
  which didn't incorporate a port table. this commit removes
  per-dispatch QID tables and shares the same table between all
  dispatches. since dispatches are created for each TCP socket, this may
  speed up the dispatch allocation process. there may be a slight
  increase in lock contention since all dispatches are sharing a single
  QID table, but since TCP sockets are used less often than UDP
  sockets (which were already sharing a QID table), it should not be a
  substantial change.

- The dispatch port table was being used to determine whether a port was
  already in use; if so, then a UDP socket would be bound with
  REUSEADDR. this commit removes the port table, and always binds UDP
  sockets that way.
2021-10-02 10:21:49 +02:00
..
.gitignore Remove genrandom command and all usage of specific random files throughout the system test suite 2018-05-16 09:54:35 +02:00
arpaname.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
arpaname.rst update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
dnstap-read.c Refactored dns_message_t for using attach/detach semantics 2020-09-29 08:22:08 +02:00
dnstap-read.rst update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
Makefile.am Move the include Makefile.tests to the bottom of Makefile.am(s) 2021-06-24 15:33:52 +02:00
mdig.c Dispatch API simplification 2021-10-02 10:21:49 +02:00
mdig.rst Try to improve rrl timing 2020-10-15 00:05:12 +00:00
named-journalprint.c Allow named-journalprint to compact journals at a given serial 2021-05-05 23:12:37 +10:00
named-journalprint.rst Always perform a re-write when processing a version 1 journal 2021-05-05 23:12:37 +10:00
named-nzd2nzf.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
named-nzd2nzf.rst update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
named-rrchecker.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
named-rrchecker.rst update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
nsec3hash.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
nsec3hash.rst update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00