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 c6f8b4da3d Review "Fix 32-bit truncation of the WebSocket client I/O 
timeout"
c6f8b4da3d is described below

commit c6f8b4da3d3abcc7603ac787af371d65c068c522
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Nov 5 09:42:36 2026 +0000

    Review "Fix 32-bit truncation of the WebSocket client I/O timeout"
    
    Simplify
---
 java/org/apache/tomcat/websocket/WsWebSocketContainer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/tomcat/websocket/WsWebSocketContainer.java 
b/java/org/apache/tomcat/websocket/WsWebSocketContainer.java
index 859340cd93..4fc367ea5f 100644
--- a/java/org/apache/tomcat/websocket/WsWebSocketContainer.java
+++ b/java/org/apache/tomcat/websocket/WsWebSocketContainer.java
@@ -285,7 +285,7 @@ public class WsWebSocketContainer implements 
WebSocketContainer, BackgroundProce
         long timeout = Constants.IO_TIMEOUT_MS_DEFAULT;
         String timeoutValue = (String) 
userProperties.get(Constants.IO_TIMEOUT_MS_PROPERTY);
         if (timeoutValue != null) {
-            timeout = Long.valueOf(timeoutValue).longValue();
+            timeout = Long.parseLong(timeoutValue);
         }
 
         AsynchronousSocketChannel socketChannel;


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

Reply via email to