Commit 71b4032a93 for bind
commit 71b4032a935fd02c471258146209e3150f70b937
Author: Štěpán Balážik <stepan@isc.org>
Date: Tue Oct 27 13:03:13 2026 +0100
Say what an exception in a handler does to a custom server
The server does not survive it, and the failure shows up only at the
stop at teardown, far from its cause.
diff --git a/bin/tests/system/README.md b/bin/tests/system/README.md
index ade955e94b..8f201f36dc 100644
--- a/bin/tests/system/README.md
+++ b/bin/tests/system/README.md
@@ -422,6 +422,9 @@ whose matcher matches a query handles it. Please see
`isctest/asyncserver/handlers.py` for up-to-date information on available handler classes
and existing `ans.py` files for how they can be used in practice. Consult the
log files (`ans.run`) in case a query is not matched by its intended handler.
+An exception raised by a handler stops the whole server, not just that
+response: later queries go unanswered, the traceback ends up in `ans.run`, and
+the stale `ans.pid` causes a test failure at teardown.
**NOTE:** For readability (of both code and logs), defining separate handler
classes for distinct queries is strongly preferred over using a single handler