From 9d8cd877a09418406c129472a8cf3e6adc83b129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicki=20K=C5=99=C3=AD=C5=BEek?= Date: Fri, 28 Nov 2025 15:34:38 +0100 Subject: [PATCH] Rename ResponseDropAndCloseConnection action The action can be used to close the connection even after some response was sent, depending on the ordering of actions in the handler that uses it. Rename it to CloseConnection to use a more fitting name. (cherry picked from commit 20887ff80f18e28bd5404f40488151c855f26d5f) --- bin/tests/system/isctest/asyncserver.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/tests/system/isctest/asyncserver.py b/bin/tests/system/isctest/asyncserver.py index eaf9ded26c..86de57cf71 100644 --- a/bin/tests/system/isctest/asyncserver.py +++ b/bin/tests/system/isctest/asyncserver.py @@ -429,10 +429,9 @@ class _ConnectionTeardownRequested(Exception): @dataclass -class ResponseDropAndCloseConnection(ResponseAction): +class CloseConnection(ResponseAction): """ - Action which makes the server close the connection after the DNS query is - received by the server (TCP only). + Action which makes the server close the connection (TCP only). The connection may be closed with a delay if requested. """ @@ -555,8 +554,8 @@ class ConnectionReset(ConnectionHandler): make the server send an RST segment; this happens when the server closes a client's socket while there is still unread data in that socket's buffer. If closing the connection _after_ the query is read by the server is enough - for a given use case, the ResponseDropAndCloseConnection response handler - should be used instead. + for a given use case, the CloseConnection response handler should be used + instead. """ delay: float = 0.0