bind9/lib/isc/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/file [master] new mkeys and nzf naming format 2014-11-04 19:43:27 -08:00
aes_test.c The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
buffer_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
counter_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
crc64_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
doh_test.c Replace multiple /dns-query constants with a global one 2021-08-30 10:32:17 +03:00
errno_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
file_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
hash_test.c Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00
heap_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
hmac_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
ht_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
isctest.c ensure interlocked netmgr events run on worker[0] 2021-05-07 14:28:32 -07:00
isctest.h update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
lex_test.c Use %d for enum values 2021-08-19 10:19:32 +10:00
Makefile.am Add stats unit test 2021-08-24 09:07:15 +02:00
md_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
mem_test.c Return non-NULL pointer on zero-sized allocations and reallocations 2021-09-23 22:17:15 +02:00
netaddr_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
netmgr_test.c Make the DNS over HTTPS support optional 2021-07-07 09:50:53 +02:00
parse_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
pool_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
quota_test.c Add nanosleep and usleep Windows shims 2021-05-03 20:22:54 +02:00
radix_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
random_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
regex_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
result_test.c Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00
safe_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
siphash_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
sockaddr_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
socket_test.c Dispatch API simplification 2021-10-02 10:21:49 +02:00
stats_test.c Add a function isc_stats_resize 2021-08-24 09:07:15 +02:00
symtab_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
task_test.c The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
taskpool_test.c only run tasks as privileged if taskmgr is in privileged mode 2021-05-07 14:28:30 -07:00
time_test.c Add isc_time_now_hires function to get current time with high resolution 2021-03-20 11:25:55 -07:00
timer_test.c Reset errcnt at the start of each subtest 2021-07-12 03:47:11 +00:00
uv_wrap.h Cleanup the remaining of HAVE_UV_<func> macros 2021-06-02 11:23:36 +02:00