bind9/tests
Artem Boldariev d6041e5d45 *_noresponse, tlsdns_listen_noalpn: csends == 1 is not guaranteed
This commit removes an assertion from the unit test which cannot be
guaranteed.

According to the test, exactly one client send must succeed. However,
it cannot really be guaranteed, as do not start to read data in the
accept callback on the server nor attach to the accepted handle. Thus,
we can expect the connection to be closed soon after we have returned
from the callback.

Interestingly enough, the test would pass just fine on TCP because:

a) there are fewer layers involved and thus there is less processing;

b) it is possible for the data to be sent and end up in an internal OS
socket buffer without being touched by an application's code on the
server. In such a case the client's write callback still would be
called successfully;

There is a chance for the test to succeed over TLS as well (as it
happily did before), but as the code has been changed to close unused
connections as soon as possible, the chance is far slimmer now.

What can be guaranteed is:

* cconnects == 1 (number client connections equals 1);
* saccepts == 1 (number of accepted connections equals 1).

(cherry picked from commit 0f9b6a7bc1)
2022-07-12 15:31:20 +03:00
..
dns Add synth-from-dnssec namespaces for keytable entries 2022-07-07 07:47:45 +10:00
include/tests Update clang to version 14 2022-06-16 18:09:33 +02:00
irs
isc *_noresponse, tlsdns_listen_noalpn: csends == 1 is not guaranteed 2022-07-12 15:31:20 +03:00
isccfg Add missing CFLAGS and LDADD to unit tests 2022-06-01 17:45:34 +02:00
libtest Don't list libtest.la headers in HEADERS variable 2022-06-01 17:45:34 +02:00
ns Properly adjust the srcdir vs builddir paths 2022-06-01 17:45:34 +02:00
.gitignore
Makefile.am Stop the unit tests from running twice 2022-05-31 12:06:00 +02:00
unit-test-driver.sh.in