bind9/lib/ns/tests
Ondřej Surý b5bf58b419 Destroy netmgr before destroying taskmgr
With taskmgr running on top of netmgr, the ordering of how the tasks and
netmgr shutdown interacts was wrong as previously isc_taskmgr_destroy()
was waiting until all tasks were properly shutdown and detached.  This
responsibility was moved to netmgr, so we now need to do the following:

  1. shutdown all the tasks - this schedules all shutdown events onto
     the netmgr queue

  2. shutdown the netmgr - this also makes sure all the tasks and
     events are properly executed

  3. Shutdown the taskmgr - this now waits for all the tasks to finish
     running before returning

  4. Shutdown the netmgr - this call waits for all the netmgr netievents
     to finish before returning

This solves the race when the taskmgr object would be destroyed before
all the tasks were finished running in the netmgr loops.
2021-05-07 14:28:30 -07:00
..
testdata Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
listenlist_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
Makefile.am Drop function wrapping as it is redundant for now 2020-09-28 09:09:21 +02:00
notify_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
nstest.c Destroy netmgr before destroying taskmgr 2021-05-07 14:28:30 -07:00
nstest.h Refactor TLSDNS module to work with libuv/ssl directly 2021-01-25 09:19:22 +01:00
plugin_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
query_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00