]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Drop unnecessary qctx.prepare_new_response() call
authorMichał Kępień <michal@isc.org>
Thu, 21 May 2026 09:52:56 +0000 (11:52 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 21 May 2026 09:52:56 +0000 (11:52 +0200)
The ans3 custom server does not have any zones defined, so the responses
passed to its handlers by core isctest.asyncserver code are guaranteed
to be empty.  Remove a call to qctx.prepare_new_response() from
CookieHandler.get_responses() as it is redundant.

bin/tests/system/resend_loop/ans3/ans.py

index f8a745bfaa059536741357538f0ee209cc05d4e8..860a2403ee74dbeef0569496c00a2601cfd00c95 100644 (file)
@@ -74,8 +74,6 @@ class CookieHandler(DomainHandler):
         self, qctx: QueryContext
     ) -> AsyncGenerator[DnsResponseSend, None]:
 
-        qctx.prepare_new_response()
-
         # Check for client cookie
         cookie = _get_cookie(qctx)