This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 0c78dac082 Speed up testBug56032Legacy
0c78dac082 is described below
commit 0c78dac08224d6a799388ce1ab8e0838c21531ad
Author: Mark Thomas <[email protected]>
AuthorDate: Sat Nov 7 21:47:21 2026 +0000
Speed up testBug56032Legacy
Force the client session closed rather than waiting for the default 30s
session close timeout, as testBug56032 already does.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
---
test/org/apache/tomcat/websocket/TestWebSocketFrameClientSSL.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/test/org/apache/tomcat/websocket/TestWebSocketFrameClientSSL.java
b/test/org/apache/tomcat/websocket/TestWebSocketFrameClientSSL.java
index 5119afff31..94f5f6e64c 100644
--- a/test/org/apache/tomcat/websocket/TestWebSocketFrameClientSSL.java
+++ b/test/org/apache/tomcat/websocket/TestWebSocketFrameClientSSL.java
@@ -218,8 +218,9 @@ public class TestWebSocketFrameClientSSL extends
WebSocketBaseTest {
Assert.fail("There are [" + openConnectionCount + "] connections
still open");
}
- // Close the client session.
- wsSession.close();
+ // Cast so we can force the session to be closed quickly.
+ CloseReason cr = new CloseReason(CloseCodes.CLOSED_ABNORMALLY, "");
+ ((WsSession) wsSession).doClose(cr, cr, true);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]