]> git.ipfire.org Git - thirdparty/bind9.git/commit
Split fast and slow task queues
authorOndřej Surý <ondrej@isc.org>
Thu, 11 Jan 2024 11:03:24 +0000 (12:03 +0100)
committerMichał Kępień <michal@isc.org>
Thu, 1 Feb 2024 20:51:07 +0000 (21:51 +0100)
commitc12608ca934c0433d280e65fe6c631013e200cfe
tree261fc05688984eeaf55b545ca699e2d1600f99c0
parenta0c78d19f1649f710066b75e3bc10bdb1e7af28c
Split fast and slow task queues

Change the taskmgr (and thus netmgr) in a way that it supports fast and
slow task queues.  The fast queue is used for incoming DNS traffic and
it will pass the processing to the slow queue for sending outgoing DNS
messages and processing resolver messages.

In the future, more tasks might get moved to the slow queues, so the
cached and authoritative DNS traffic can be handled without being slowed
down by operations that take longer time to process.

(cherry picked from commit 1b3b0cef224e7a9e8279c5cfe2f7e188e3777cc7)
lib/dns/resolver.c
lib/isc/include/isc/netmgr.h
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/udp.c