From b0e708f1e8a29ab4cb0da163d5105208a710cec1 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 17 Jan 2023 16:33:33 +0100 Subject: [PATCH] dnsdist: Document what happens on cache hit, miss after resumption --- pdns/dnsdistdist/docs/reference/dq.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pdns/dnsdistdist/docs/reference/dq.rst b/pdns/dnsdistdist/docs/reference/dq.rst index 410318c0ff..cd8dd221c8 100644 --- a/pdns/dnsdistdist/docs/reference/dq.rst +++ b/pdns/dnsdistdist/docs/reference/dq.rst @@ -545,8 +545,9 @@ AsynchronousObject object Resume the processing of the suspended object. For a question, it means first checking whether it was turned into a response, - and sending the response out it it was. Otherwise do a cache-lookup, select a - backend and send the query to the backend. + and sending the response out it it was. Otherwise do a cache-lookup: on a + cache-hit, the response will be sent immediately. On a cache-miss, + it means dnsdist will select a backend and send the query to the backend. For a response, it means inserting into the cache if needed and sending the response to the backend. Note that the AsynchronousObject object should NOT be accessed after successfully calling this method. -- 2.47.2