This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit f17eb521063849098d30d1466e3bace097a9685d Author: Mark Thomas <ma...@apache.org> AuthorDate: Fri Aug 21 14:48:39 2020 +0100 Add debug log message for stream recycling --- java/org/apache/coyote/http2/LocalStrings.properties | 1 + java/org/apache/coyote/http2/Stream.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/java/org/apache/coyote/http2/LocalStrings.properties b/java/org/apache/coyote/http2/LocalStrings.properties index 4ba59c1..e80e6d3 100644 --- a/java/org/apache/coyote/http2/LocalStrings.properties +++ b/java/org/apache/coyote/http2/LocalStrings.properties @@ -96,6 +96,7 @@ stream.inputBuffer.reset=Stream reset stream.inputBuffer.signal=Data added to inBuffer when read thread is waiting. Signalling that thread to continue stream.notWritable=Connection [{0}], Stream [{1}], This stream is not writable stream.outputBuffer.flush.debug=Connection [{0}], Stream [{1}], flushing output with buffer at position [{2}], writeInProgress [{3}] and closed [{4}] +stream.recycle=Connection [{0}], Stream [{1}] has been recycled stream.reprioritisation.debug=Connection [{0}], Stream [{1}], Exclusive [{2}], Parent [{3}], Weight [{4}] stream.reset.fail=Connection [{0}], Stream [{1}], Failed to reset stream stream.reset.receive=Connection [{0}], Stream [{1}], Reset received due to [{2}] diff --git a/java/org/apache/coyote/http2/Stream.java b/java/org/apache/coyote/http2/Stream.java index 208ea1b..70b5e47 100644 --- a/java/org/apache/coyote/http2/Stream.java +++ b/java/org/apache/coyote/http2/Stream.java @@ -752,6 +752,9 @@ class Stream extends AbstractStream implements HeaderEmitter { * Stream instances are retained for a period after the Stream closes. */ final void recycle() { + if (log.isDebugEnabled()) { + log.debug(sm.getString("stream.recycle", getConnectionId(), getIdentifier())); + } coyoteRequest = null; cookieHeader = null; coyoteResponse = null; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org