This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 5bbb88e564a7ec30fcafebee97d59d2e774ab488 Author: Mark Thomas <ma...@apache.org> AuthorDate: Fri Aug 21 16:35:36 2020 +0100 Recycle the stream when it is fully closed rather than half closed --- java/org/apache/coyote/http2/StreamProcessor.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java/org/apache/coyote/http2/StreamProcessor.java b/java/org/apache/coyote/http2/StreamProcessor.java index 5a24f44..a6f677a 100644 --- a/java/org/apache/coyote/http2/StreamProcessor.java +++ b/java/org/apache/coyote/http2/StreamProcessor.java @@ -87,8 +87,10 @@ class StreamProcessor extends AbstractProcessor { } stream.close(se); } else { - // stream.close() will call recycle so only need it here - stream.recycle(); + if (!stream.isActive()) { + // stream.close() will call recycle so only need it here + stream.recycle(); + } } } } catch (Exception e) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org