This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 133dd434ce Avoid reads waiting to time out when the container resets
the stream
133dd434ce is described below
commit 133dd434cee822700630dda61fc713990d15c430
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 a3ac5689af..eea43c4d4d 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -1610,6 +1610,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 0c6e6b9d52..57a7aeb5f4 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -139,6 +139,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]