This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
     new 838864d415 Avoid reads waiting to time out when the container resets 
the stream
838864d415 is described below

commit 838864d4153a3957531ac3292dc231c33c53c9d9
Author: Mark Thomas <[email protected]>
AuthorDate: Mon May 18 17:39:48 2026 +0100

    Avoid reads waiting to time out when the container resets the stream
---
 java/org/apache/coyote/http2/Stream.java | 1 +
 webapps/docs/changelog.xml               | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/java/org/apache/coyote/http2/Stream.java 
b/java/org/apache/coyote/http2/Stream.java
index c4a23d9900..e0c6aea3fc 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -1511,6 +1511,7 @@ class Stream extends AbstractNonZeroStream implements 
HeaderEmitter {
                         inBuffer.position(0);
                         inBuffer.limit(inBuffer.limit() - unreadByteCount);
                     }
+                    inBuffer.notifyAll();
                 }
                 // Do this outside of the sync because:
                 // - it doesn't need to be inside the sync
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index d6bb65759d..532039b7df 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -143,6 +143,12 @@
         than using OpenSSL's default TLS groups when using Tomcat Native with
         OpenSSL based connectors. (markt)
       </fix>
+      <fix>
+        For HTTP/2, ensure that any in progress request body reads are 
cancelled
+        if the container resets the associated stream. This prevents delays
+        waiting for reads to time out when it is known that no more data will 
be
+        received. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Cluster">


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to