From: Michał Kępień Date: Thu, 21 May 2026 09:52:56 +0000 (+0200) Subject: Drop unnecessary qctx.prepare_new_response() call X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=5b73bbac144b182a7fbeec8a54838e63672e420f;p=thirdparty%2Fbind9.git Drop unnecessary qctx.prepare_new_response() call 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. (cherry picked from commit 802c03313f99f622b979aa3bb548e3a4eb4340d3) --- diff --git a/bin/tests/system/resend_loop/ans3/ans.py b/bin/tests/system/resend_loop/ans3/ans.py index 9a1ccf97cf0..f6543e0eace 100644 --- a/bin/tests/system/resend_loop/ans3/ans.py +++ b/bin/tests/system/resend_loop/ans3/ans.py @@ -67,8 +67,6 @@ class CookieHandler(DomainHandler): self, qctx: QueryContext ) -> AsyncGenerator[DnsResponseSend, None]: - qctx.prepare_new_response() - # Check for client cookie cookie = _get_cookie(qctx)