This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 57567eaba0 Fix test failure on newer MacOS versions
57567eaba0 is described below

commit 57567eaba0b88a986e530150436f604cbcbf3f5c
Author: Mark Thomas <[email protected]>
AuthorDate: Sat Oct 3 16:45:19 2026 +0100

    Fix test failure on newer MacOS versions
---
 test/org/apache/tomcat/websocket/server/TesterWsClient.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/test/org/apache/tomcat/websocket/server/TesterWsClient.java 
b/test/org/apache/tomcat/websocket/server/TesterWsClient.java
index ed52cee593..c0a6cd2fe8 100644
--- a/test/org/apache/tomcat/websocket/server/TesterWsClient.java
+++ b/test/org/apache/tomcat/websocket/server/TesterWsClient.java
@@ -92,9 +92,8 @@ public class TesterWsClient {
     }
 
     public void closeSocket() throws IOException {
-        // Enable SO_LINGER to ensure close() only returns when TCP closing
-        // handshake completes
-        socket.setSoLinger(true, 65535);
+        // Enable SO_LINGER to ensure close() only returns when TCP closing 
handshake completes (1 hour)
+        socket.setSoLinger(true, 3600);
         socket.close();
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to