]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add dispatch_getcp and dispatch_newtcp tests
authorOndřej Surý <ondrej@isc.org>
Mon, 23 Oct 2023 10:26:50 +0000 (12:26 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 24 Oct 2023 11:07:03 +0000 (13:07 +0200)
commitd246aa02a6e696aaa672b63a0c17e9c405418250
treef2807d3946af5e4059a18db60f3a0e4964abb9cc
parentf213f644edce88b1827442eef071b2a90c65ea19
Add dispatch_getcp and dispatch_newtcp tests

Refactor the dispatch unit test to use more local variables (previously
dispatchmgr, dispatch and dispentry were all global), and add two new
tests:

* dispatch_getcp - test whether the TCP connection will get reused
* dispatch_newtcp - test that the TCP connection will not get reused
                    when DNS_DISPATCHOPT_UNSHARED is in effect
tests/dns/dispatch_test.c