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 4c53021142 Review "Fix 32-bit truncation of the WebSocket client I/O
timeout"
4c53021142 is described below
commit 4c5302114249de811ff7cea31b70a0d84e8f150c
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 b8003cf5f3..7ae6558532 100644
--- a/java/org/apache/tomcat/websocket/WsWebSocketContainer.java
+++ b/java/org/apache/tomcat/websocket/WsWebSocketContainer.java
@@ -280,7 +280,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]