bind9/lib/dns/tests
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
..
testdata Add NSEC3PARAM unit test, refactor zone.c 2020-11-26 10:43:59 +01:00
testkeys Add a framework for dns__zone_updatesigs() unit tests 2018-05-09 13:32:09 +02:00
.gitignore Add lib/dns/tests/testdata/dnstap/dnstap.file to .gitignore 2018-12-11 11:32:24 +01:00
acl_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
db_test.c Adjust acceptable count values 2021-06-09 22:05:55 +00:00
dbdiff_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
dbiterator_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
dbversion_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
dh_test.c Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00
dispatch_test.c Dispatch API simplification 2021-10-02 10:21:49 +02:00
dns64_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
dnstap_test.c Use SKIPPED_TEST_EXIT_CODE consistently 2021-02-16 13:41:50 +01:00
dnstest.c rename dns_zone_master and dns_zone_slave 2021-08-30 11:06:12 -07:00
dnstest.h update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
dst_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
geoip_test.c Move NAME_MAX and PATH_MAX from isc/platform.h to isc/dir.h 2021-07-06 05:33:48 +00:00
Kdh.+002+18602.key
keytable_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
Krsa.+005+29235.key
Makefile.am Remove the mastefile-format map option 2021-09-17 07:09:50 +02:00
master_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
mkraw.pl update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
name_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
nsec3_test.c Reduce nsec3 max iterations to 150 2021-04-29 17:18:26 +10:00
nsec3param_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
peer_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
private_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
rbt_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
rbtdb_test.c Fix unchecked returns of dns_name_fromtext 2021-07-12 13:26:29 +10:00
rdata_test.c Reject zero length ALPN elements in fromwire 2021-08-19 18:17:08 +10:00
rdataset_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
rdatasetstats_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
resolver_test.c Dispatch API simplification 2021-10-02 10:21:49 +02:00
result_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
rsa_test.c Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00
sigs_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
time_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
tsig_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
update_test.c Adjust returned method from dns_updatemethod_date 2021-05-18 12:30:22 +00:00
zonemgr_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
zt_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00