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 cdeb8ee099eb787063e310b94942b843710aefff
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 2b41753..2e40f9c 100644
--- a/java/org/apache/coyote/http2/StreamProcessor.java
+++ b/java/org/apache/coyote/http2/StreamProcessor.java
@@ -90,8 +90,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

Reply via email to