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

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


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 03b4ddb597 Review "Fix 32-bit truncation of the WebSocket client I/O 
timeout"
03b4ddb597 is described below

commit 03b4ddb5973683a5e82692b3fb062a7f977305c7
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 a89f799277..9424d9c582 100644
--- a/java/org/apache/tomcat/websocket/WsWebSocketContainer.java
+++ b/java/org/apache/tomcat/websocket/WsWebSocketContainer.java
@@ -283,7 +283,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