bind9/lib/isc/tests
Evan Hunt 88752b1121 refactor outgoing HTTP connection support
- style, cleanup, and removal of unnecessary code.
- combined isc_nm_http_add_endpoint() and isc_nm_http_add_doh_endpoint()
  into one function, renamed isc_http_endpoint().
- moved isc_nm_http_connect_send_request() into doh_test.c as a helper
  function; remove it from the public API.
- renamed isc_http2 and isc_nm_http2 types and functions to just isc_http
  and isc_nm_http, for consistency with other existing names.
- shortened a number of long names.
- the caller is now responsible for determining the peer address.
  in isc_nm_httpconnect(); this eliminates the need to parse the URI
  and the dependency on an external resolver.
- the caller is also now responsible for creating the SSL client context,
  for consistency with isc_nm_tlsdnsconnect().
- added setter functions for HTTP/2 ALPN. instead of setting up ALPN in
  isc_tlsctx_createclient(), we now have a function
  isc_tlsctx_enable_http2client_alpn() that can be run from
  isc_nm_httpconnect().
- refactored isc_nm_httprequest() into separate read and send functions.
  isc_nm_send() or isc_nm_read() is called on an http socket, it will
  be stored until a corresponding isc_nm_read() or _send() arrives; when
  we have both halves of the pair the HTTP request will be initiated.
- isc_nm_httprequest() is renamed isc__nm_http_request() for use as an
  internal helper function by the DoH unit test. (eventually doh_test
  should be rewritten to use read and send, and this function should
  be removed.)
- added implementations of isc__nm_tls_settimeout() and
  isc__nm_http_settimeout().
- increased NGHTTP2 header block length for client connections to 128K.
- use isc_mem_t for internal memory allocations inside nghttp2, to
  help track memory leaks.
- send "Cache-Control" header in requests and responses. (note:
  currently we try to bypass HTTP caching proxies, but ideally we should
  interact with them: https://tools.ietf.org/html/rfc8484#section-5.1)
2021-03-05 13:29:26 +02:00
..
testdata/file [master] new mkeys and nzf naming format 2014-11-04 19:43:27 -08:00
aes_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01: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 refactor outgoing HTTP connection support 2021-03-05 13:29:26 +02: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 Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01: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 Bump the maximum number of hazard pointers in tests 2021-02-18 19:32:55 +01:00
isctest.h update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
lex_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
Makefile.am Unit-test fixes and manual page updates for DoH configuration 2021-02-03 12:06:17 +01:00
md_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
mem_test.c Add mempool get/put tracking with AddressSanitizer 2021-02-26 10:05:42 -08:00
netaddr_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01: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 Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01: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 Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01: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 Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
symtab_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
task_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
taskpool_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
tcp_quota_test.c Assigning uint64_t from buffer might be misaligned in netmgr tests 2021-03-04 15:02:24 +01:00
tcp_test.c Assigning uint64_t from buffer might be misaligned in netmgr tests 2021-03-04 15:02:24 +01:00
tcpdns_test.c Assigning uint64_t from buffer might be misaligned in netmgr tests 2021-03-04 15:02:24 +01:00
time_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
timer_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
tlsdns_test.c Assigning uint64_t from buffer might be misaligned in netmgr tests 2021-03-04 15:02:24 +01:00
udp_test.c Assigning uint64_t from buffer might be misaligned in netmgr tests 2021-03-04 15:02:24 +01:00
uv_wrap.h Refactor netmgr and add more unit tests 2020-12-01 16:47:07 +01:00