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

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


The following commit(s) were added to refs/heads/7.0.x by this push:
     new 002aa51  More debug for intermittent test failures
002aa51 is described below

commit 002aa5186f7bd66ea4c7beabf62d4c00f217b395
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 144b04d..4ce5c73 100644
--- a/java/org/apache/tomcat/websocket/LocalStrings.properties
+++ b/java/org/apache/tomcat/websocket/LocalStrings.properties
@@ -65,6 +65,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.textMessageTooBig=The decoded text message was too big for the output 
buffer and the endpoint does not support partial messages
 wsFrame.wrongRsv=The client frame set the reserved bits to [{0}] for a message 
with opCode [{1}] which was not supported by this endpoint
diff --git a/java/org/apache/tomcat/websocket/WsFrameClient.java 
b/java/org/apache/tomcat/websocket/WsFrameClient.java
index ea1c014..b872231 100644
--- a/java/org/apache/tomcat/websocket/WsFrameClient.java
+++ b/java/org/apache/tomcat/websocket/WsFrameClient.java
@@ -140,6 +140,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]

Reply via email to