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
The following commit(s) were added to refs/heads/9.0.x by this push:
new 0e8db34 Potential fix for failing CI tests at GitHub
0e8db34 is described below
commit 0e8db34ff6206158fe77806622d19144aa278867
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 ad637fa..5b96d99 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]