Added test for the fix

This test ensures that named will correctly shutdown
when receiving multiple control connections after processing
of either "rncd stop" or "kill -SIGTERM" commands.

Before the fix, named was crashing due to a race condition happening
between two threads, one running shutdown logic in named/server.c
and other handling control logic in controlconf.c.

This test tries to reproduce the above scenario by issuing multiple
queries to a target named instance, issuing either rndc stop or kill
-SIGTERM command to the same named instance, then starting multiple rndc
status connections to ensure it is not crashing anymore.
This commit is contained in:
Diego Fronza
2020-05-25 15:03:32 -03:00
committed by Ondřej Surý
parent be6cc53ec2
commit 042e509753
13 changed files with 429 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ TESTS += \
rpzrecurse
endif HAVE_PERLMOD_NET_DNS
TESTS += \
TESTS += \
acl \
additional \
addzone \
@@ -107,7 +107,7 @@ TESTS += \
geoip2 \
glue \
idna \
include-multiplecfg \
include-multiplecfg \
inline \
integrity \
kasp \
@@ -134,6 +134,7 @@ TESTS += \
rrsetorder \
rsabigexponent \
runtime \
shutdown \
sfcache \
smartsign \
sortlist \