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 bd944eb175 Fix test failure on newer MacOS versions
bd944eb175 is described below

commit bd944eb175aea7e9a00497b27b581d7a5b6ff1e2
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