bind9/lib/ns
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
..
include Keep track of allow client detach 2021-04-02 09:14:09 +02:00
tests Destroy netmgr before destroying taskmgr 2021-05-07 14:28:30 -07:00
win32 Initial support for DNS-over-HTTP(S) 2021-02-03 12:06:17 +01:00
client.c Destroy netmgr before destroying taskmgr 2021-05-07 14:28:30 -07:00
hooks.c Use libuv's shared library handling capabilities 2020-10-28 15:48:58 +01:00
interfacemgr.c refactor outgoing HTTP connection support 2021-03-05 13:29:26 +02:00
lib.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
listenlist.c support "tls ephemeral" with https 2021-02-03 12:06:17 +01:00
log.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
Makefile.am Use -release instead of -version-info for internal library SONAMEs 2021-01-25 14:19:53 +01:00
notify.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
query.c Use isdigit instead of checking character range 2021-05-05 19:15:33 +02:00
server.c Simplify the EDNS buffer size logic for DNS Flag Day 2020 2020-10-05 16:21:21 +02:00
sortlist.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
stats.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
update.c Reduce nsec3 max iterations to 150 2021-04-29 17:18:26 +10:00
xfrout.c Fix the isc_nm_closedown() to actually close the pending connections 2020-10-22 11:37:16 -07:00