This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 8c38586db4 Review "Fix 32-bit truncation of the WebSocket client I/O
timeout"
8c38586db4 is described below
commit 8c38586db495720d2e550a0ffaed33eecf30791e
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 7833309e35..82c3866558 100644
--- a/java/org/apache/tomcat/websocket/WsWebSocketContainer.java
+++ b/java/org/apache/tomcat/websocket/WsWebSocketContainer.java
@@ -278,7 +278,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]