This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new 7a9cb65 More debug for intermittent test failures
7a9cb65 is described below
commit 7a9cb65fe5499422c456e4f5595a87400ef95186
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Sep 10 15:42:01 2020 +0100
More debug for intermittent test failures
---
java/org/apache/tomcat/websocket/LocalStrings.properties | 1 +
java/org/apache/tomcat/websocket/WsFrameClient.java | 3 +++
2 files changed, 4 insertions(+)
diff --git a/java/org/apache/tomcat/websocket/LocalStrings.properties
b/java/org/apache/tomcat/websocket/LocalStrings.properties
index 7a3489d..ce102ba 100644
--- a/java/org/apache/tomcat/websocket/LocalStrings.properties
+++ b/java/org/apache/tomcat/websocket/LocalStrings.properties
@@ -72,6 +72,7 @@ wsFrame.notMasked=The client frame was not masked but all
client frames must be
wsFrame.oneByteCloseCode=The client sent a close frame with a single byte
payload which is not valid
wsFrame.partialHeaderComplete=WebSocket frame received. fin [{0}], rsv [{1}],
OpCode [{2}], payload length [{3}]
wsFrame.payloadMsbInvalid=An invalid WebSocket frame was received - the most
significant bit of a 64-bit payload was illegally set
+wsFrame.readFailed=Async client read failed
wsFrame.sessionClosed=The client data cannot be processed because the session
has already been closed
wsFrame.suspendRequested=Suspend of the message receiving has already been
requested.
wsFrame.textMessageTooBig=The decoded text message was too big for the output
buffer and the endpoint does not support partial messages
diff --git a/java/org/apache/tomcat/websocket/WsFrameClient.java
b/java/org/apache/tomcat/websocket/WsFrameClient.java
index 7803491..f056f58 100644
--- a/java/org/apache/tomcat/websocket/WsFrameClient.java
+++ b/java/org/apache/tomcat/websocket/WsFrameClient.java
@@ -165,6 +165,9 @@ public class WsFrameClient extends WsFrameBase {
@Override
public void failed(Throwable exc, Void attachment) {
+ if (log.isDebugEnabled()) {
+ log.debug(sm.getString("wsFrame.readFailed"), exc);
+ }
if (exc instanceof ReadBufferOverflowException) {
// response will be empty if this exception is thrown
response = ByteBuffer
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]