Commit 6ef3429d27 for bind
commit 6ef3429d27a49ff02d033fabd435ffe2a61ccc78
Author: Štěpán Balážik <stepan@isc.org>
Date: Tue Sep 8 16:48:13 2026 +0200
Remove ResponseHandler.match()
Every handler declares a matcher now, so the server asks the matcher
directly.
Assisted-by: Claude:claude-fable-5
diff --git a/bin/tests/system/isctest/asyncserver/__init__.py b/bin/tests/system/isctest/asyncserver/__init__.py
index 3f5673f41a..1ed39af2be 100644
--- a/bin/tests/system/isctest/asyncserver/__init__.py
+++ b/bin/tests/system/isctest/asyncserver/__init__.py
@@ -273,16 +273,6 @@ class ResponseHandler(abc.ABC):
matcher: Matcher = Always()
- def match(self, qctx: QueryContext) -> bool:
- """
- Whether this handler handles the query in `qctx`.
-
- The default implementation defers to `matcher`, which is how handlers
- are expected to declare what they handle. A handler overriding this
- method still takes precedence, silently, for the time being.
- """
- return self.matcher.match(qctx)
-
@abc.abstractmethod
async def get_responses(
self, qctx: QueryContext
@@ -1033,7 +1023,7 @@ class AsyncDnsServer(AsyncServer):
Yield response(s) to the query from a matching query handler.
"""
for handler in self._response_handlers:
- if handler.match(qctx):
+ if handler.matcher.match(qctx):
logging.debug("Matched response handler: %s", handler)
async for response in handler.get_responses(qctx):
yield response