You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2019/04/15 13:33:06 UTC

[tomcat] branch master updated: Add some debug

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

remm 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 06f456f  Add some debug
06f456f is described below

commit 06f456f762dc1b6fa5df44da9f0c3cf70ae202f0
Author: remm <re...@apache.org>
AuthorDate: Mon Apr 15 15:32:55 2019 +0200

    Add some debug
---
 java/org/apache/coyote/http2/Http2AsyncParser.java   | 3 +++
 java/org/apache/coyote/http2/LocalStrings.properties | 1 +
 2 files changed, 4 insertions(+)

diff --git a/java/org/apache/coyote/http2/Http2AsyncParser.java b/java/org/apache/coyote/http2/Http2AsyncParser.java
index 92531bf..d8f2767 100644
--- a/java/org/apache/coyote/http2/Http2AsyncParser.java
+++ b/java/org/apache/coyote/http2/Http2AsyncParser.java
@@ -237,6 +237,9 @@ class Http2AsyncParser extends Http2Parser {
             // Always a fatal IO error
             error = e;
             if (state == null || state == CompletionState.DONE) {
+                if (log.isDebugEnabled()) {
+                    log.debug(sm.getString("http2Parser.error", connectionId, Integer.valueOf(streamId), frameType), e);
+                }
                 upgradeHandler.upgradeDispatch(SocketEvent.ERROR);
             }
         }
diff --git a/java/org/apache/coyote/http2/LocalStrings.properties b/java/org/apache/coyote/http2/LocalStrings.properties
index 1320e60..17dbf88 100644
--- a/java/org/apache/coyote/http2/LocalStrings.properties
+++ b/java/org/apache/coyote/http2/LocalStrings.properties
@@ -44,6 +44,7 @@ hpackdecoder.zeroNotValidHeaderTableIndex=Zero is not a valid header table index
 hpackhuffman.huffmanEncodedHpackValueDidNotEndWithEOS=Huffman encoded value in HPACK headers did not end with EOS padding
 hpackhuffman.stringLiteralTooMuchPadding=More than 7 bits of EOS padding were provided at the end of an Huffman encoded string literal
 
+http2Parser.error=Connection [{0}], Stream [{1}], Frame type [{2}], Error
 http2Parser.headerLimitCount=Connection [{0}], Stream [{1}], Too many headers
 http2Parser.headerLimitSize=Connection [{0}], Stream [{1}], Total header size too big
 http2Parser.headers.wrongFrameType=Connection [{0}], headers in progress for stream [{1}] but a frame of type [{2}] was received


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org