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 3081e0e Add specific debug message for connection allocation
3081e0e is described below
commit 3081e0e246d4391533d8468f9e3e7cdb466d54d7
Author: remm <[email protected]>
AuthorDate: Sun May 5 09:00:39 2019 +0200
Add specific debug message for connection allocation
---
java/org/apache/coyote/http2/Http2UpgradeHandler.java | 4 ++++
java/org/apache/coyote/http2/LocalStrings.properties | 1 +
2 files changed, 5 insertions(+)
diff --git a/java/org/apache/coyote/http2/Http2UpgradeHandler.java
b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
index 170e6c9..65c9fe6 100644
--- a/java/org/apache/coyote/http2/Http2UpgradeHandler.java
+++ b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
@@ -815,6 +815,10 @@ class Http2UpgradeHandler extends AbstractStream
implements InternalHttpUpgradeH
// requested write has been fully allocated
int[] value = backLogStreams.get(stream);
if (value != null && value[1] == 0) {
+ if (log.isDebugEnabled()) {
+
log.debug(sm.getString("upgradeHandler.noAllocation",
+ connectionId));
+ }
// No allocation
// Close the connection. Do this first since
// closing the stream will raise an exception
diff --git a/java/org/apache/coyote/http2/LocalStrings.properties
b/java/org/apache/coyote/http2/LocalStrings.properties
index 2c3e5c0..4191ae1 100644
--- a/java/org/apache/coyote/http2/LocalStrings.properties
+++ b/java/org/apache/coyote/http2/LocalStrings.properties
@@ -128,6 +128,7 @@ upgradeHandler.init=Connection [{0}], State [{1}]
upgradeHandler.initialWindowSize.invalid=Connection [{0}], Illegal value of
[{1}] ignored for initial window size
upgradeHandler.invalidPreface=Connection [{0}], Invalid connection preface
upgradeHandler.ioerror=Connection [{0}]
+upgradeHandler.noAllocation=Connection [{0}], Timeout waiting for allocation
upgradeHandler.noNewStreams=Connection [{0}], Stream [{1}], Stream ignored as
no new streams are permitted on this connection
upgradeHandler.notifyAll=Connection [{0}], Stream [{1}], notifyAll() called to
release StreamOutputBuffer
upgradeHandler.pause.entry=Connection [{0}] Pausing
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]