]> git.ipfire.org Git - thirdparty/pdns.git/commit
auth: Better fix for the leak reported by LSAN in test-distributor_hh.cc
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 20 Jun 2024 08:21:48 +0000 (10:21 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 25 Jul 2024 11:46:31 +0000 (13:46 +0200)
commitda77aaa2f787c264a018e238250634216a7377d8
tree20c790c3f1c57c5bad7d16929322c365c147dd34
parentd1fea87d200a9cec114b3ef7c7a4e6910d217261
auth: Better fix for the leak reported by LSAN in test-distributor_hh.cc

This unit test is checking that we correctly throw when too many queries
are waiting in the distribution pipe, by making the mock backend slow
on purpose. Once the distributor has been restarted as expected, we need
to wait until the mock backend has processed all queued queries, otherwise
Leak Sanitizer will rightfully report a memory leak.

(cherry picked from commit 681cdfb76c06fbfe89e1ae606ac629e42829cb7c)
pdns/test-distributor_hh.cc