]> git.ipfire.org Git - thirdparty/bind9.git/commit
Call the connected dns_dispatch callback asynchronously
authorOndřej Surý <ondrej@isc.org>
Tue, 20 Dec 2022 07:39:36 +0000 (08:39 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 21 Dec 2022 12:41:15 +0000 (12:41 +0000)
commitbe3cf85cfe8b22b6e0fe75ed139d0df021b950c3
tree3ae274ba8feda2a74aa51f93abc8dc3646000feb
parent87ad3ecaf0a9a3bc0df91f4ba7a6c185ea4fe248
Call the connected dns_dispatch callback asynchronously

The dns_request code is very sensitive about calling the connected and
deadlocks when the timing is "right" in several places.  Move the call
to the connected callback to the (udp|tcp)_connected() functions, so
they are called asynchronously instead of directly from
the (udp|tcp)_dispentry_cancel() functions.

(cherry picked from commit 9dd8deaf018cf7f93dc1d2ba08cc35764e76cc0f)
lib/dns/dispatch.c