This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 cb8c79ccfb Avoid reads waiting to time out when the container resets
the stream
cb8c79ccfb is described below
commit cb8c79ccfb7fea2801893a23058a156902d97b61
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 8e6e6764f9..d2cce941e8 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -1612,6 +1612,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 97a663f2a4..fd3eaf73a0 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -135,6 +135,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]