]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Stop the responders more quickly during the tests 12328/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 14 Dec 2022 15:19:49 +0000 (16:19 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 14 Dec 2022 15:19:49 +0000 (16:19 +0100)
commit28d4c42d071c20332b6f10f11369d95be1cc21a2
tree77dc24a305a3cc293931fbae07e1a08b0c14975a
parent06b16cb862805ccb3067bcd059dc73d386e5003a
dnsdist: Stop the responders more quickly during the tests

We use `SO_REUSEPORT` in these tests so if the old responder is
still around when the next test starts, it is quite likely that
it might get one of the new queries. This is usually fine because
responders with a different behaviour listen on different ports,
but if a query is queued to an old responder socket right during
the time that responder is checking whether it should stop and
the actual exit, the query will be lost.
regression-tests.dnsdist/dnsdisttests.py