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
The following commit(s) were added to refs/heads/9.0.x by this push: new dd35fd4 Make sure recycle() is called once the Stream is closed dd35fd4 is described below commit dd35fd4c406179b8457c724554bbe3c047e88964 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Jun 25 10:42:37 2020 +0100 Make sure recycle() is called once the Stream is closed --- java/org/apache/coyote/http2/StreamProcessor.java | 4 ++++ webapps/docs/changelog.xml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/java/org/apache/coyote/http2/StreamProcessor.java b/java/org/apache/coyote/http2/StreamProcessor.java index e03f307..80c22ec 100644 --- a/java/org/apache/coyote/http2/StreamProcessor.java +++ b/java/org/apache/coyote/http2/StreamProcessor.java @@ -100,7 +100,11 @@ class StreamProcessor extends AbstractProcessor { ConnectionException ce = new ConnectionException(msg, Http2Error.INTERNAL_ERROR); ce.initCause(e); stream.close(ce); + state = SocketState.CLOSED; } finally { + if (state == SocketState.CLOSED) { + recycle(); + } ContainerThreadMarker.clear(); } } diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index a4daa3c..52b1a30 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -100,6 +100,10 @@ white space around cookie attrubute names and values when using the RFC 6265 cookie processor. (markt) </fix> + <fix> + Once an HTTP/2 stream has been closed, ensure that the code that cleans + up references that are no longer required is called. (markt) + </fix> </changelog> </subsection> <subsection name="Other"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org