]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- fast-reload, comment explains in_list for printq to print remainder.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 8 Dec 2023 14:20:25 +0000 (15:20 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 8 Dec 2023 14:20:25 +0000 (15:20 +0100)
daemon/remote.c

index e01bdb3c454b8f009623fb91ba87cc05a5a07d77..63ece5c5968d70b18bb43acc40ea545851c7348d 100644 (file)
@@ -4032,6 +4032,12 @@ fast_reload_thread_desetup(struct fast_reload_thread* fast_reload_thread)
                if(fr_printq_empty(fast_reload_thread->printq)) {
                        fr_printq_delete(fast_reload_thread->printq);
                } else {
+                       /* Keep the printq around to printout the remaining
+                        * text to the remote client. Until it is done, it
+                        * sits on a list, that is in the daemon struct.
+                        * The event can then spool the remaining text to the
+                        * remote client and eventually delete itself from the
+                        * callback. */
                        fr_printq_list_insert(fast_reload_thread->printq,
                                fast_reload_thread->worker->daemon);
                        fast_reload_thread->printq = NULL;