]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add system test lingering CLOSE_WAIT TCP sockets
authorMatthijs Mekking <matthijs@isc.org>
Thu, 3 Feb 2022 09:49:25 +0000 (10:49 +0100)
committerMichal Nowak <mnowak@isc.org>
Thu, 7 Apr 2022 15:02:48 +0000 (17:02 +0200)
commitb9ebde705bfcc63e4de04e86cffc67467f9bcfed
tree1f5e3ef9e333688dd77e232d2b5302377d9c7feb
parent180f77dd9c6fccd41ec0d0f9e8ab5607300db050
Add system test lingering CLOSE_WAIT TCP sockets

Add a test case to check for lingering TCP sockets stuck in the
CLOSE_WAIT state. This can happen if a client sends some garbage after
its first query.

The system test runs the reproducer script and then sends another TCP
query to the resolver. The resolver is configured to allow one TCP
client only. If BIND has its TCP socket stuck in CLOSE_WAIT, it does
not have the resources available to answer the second query.

Note: A better test would be to check if the named daemon does not
have a TCP socket stuck in CLOSE_WAIT for example with netstat. When
running this test locally you can examine named with netstat manually.
But since netstat is platform specific it is not a good candidate to do
this as a system test.

If you, if you could return, don't let it burn.
Do you have to let it linger?
- Cranberries
bin/tests/system/tcp/ns7/named.dropedns [new file with mode: 0644]
bin/tests/system/tcp/tests-tcp.py