This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 310905447cb3a73aca77ac8183c1dcad5290c587 Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed Aug 7 16:14:33 2024 +0100 If a blocking message write times out, don't write again before throwing --- java/org/apache/tomcat/websocket/WsRemoteEndpointImplClient.java | 1 + webapps/docs/changelog.xml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/java/org/apache/tomcat/websocket/WsRemoteEndpointImplClient.java b/java/org/apache/tomcat/websocket/WsRemoteEndpointImplClient.java index 9670297f1f..0cd9636c09 100644 --- a/java/org/apache/tomcat/websocket/WsRemoteEndpointImplClient.java +++ b/java/org/apache/tomcat/websocket/WsRemoteEndpointImplClient.java @@ -62,6 +62,7 @@ public class WsRemoteEndpointImplClient extends WsRemoteEndpointImplBase { SendResult sr = new SendResult(getSession(), new IOException(sm.getString("wsRemoteEndpoint.writeTimeout"))); handler.onResult(sr); + return; } } diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 401e87ffb9..bd0244f33f 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -113,6 +113,14 @@ </fix> </changelog> </subsection> + <subsection name="WebSocket"> + <changelog> + <fix> + If a blocking message write exceeds the timeout, don't attempt the write + again before throwing the exception. (markt) + </fix> + </changelog> + </subsection> <subsection name="Web applications"> <changelog> <fix> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org