This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new c1b85e4 Potential fix for failing CI tests at GitHub
c1b85e4 is described below
commit c1b85e442581ec2738493cc98ec35183830c0f99
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Mar 23 10:42:14 2021 +0000
Potential fix for failing CI tests at GitHub
---
java/org/apache/coyote/http2/Stream.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/coyote/http2/Stream.java
b/java/org/apache/coyote/http2/Stream.java
index b577d6e..ca68514 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -1190,9 +1190,11 @@ class Stream extends AbstractNonZeroStream implements
HeaderEmitter {
}
private final void swallowUnread() throws IOException {
+ synchronized (this) {
+ closed = true;
+ }
if (inBuffer != null) {
synchronized (inBuffer) {
- closed = true;
int unreadByteCount = inBuffer.position();
if (log.isDebugEnabled()) {
log.debug(sm.getString("stream.inputBuffer.swallowUnread",
Integer.valueOf(unreadByteCount)));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]