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

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


The following commit(s) were added to refs/heads/8.5.x by this push:
     new 39e8ffc  Sync on correct object - should fix TestCancelledUpload 
failures
39e8ffc is described below

commit 39e8ffc5ae9dbe6001d7f107616714589d8c9479
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Mar 19 16:50:37 2021 +0000

    Sync on correct object - should fix TestCancelledUpload failures
---
 java/org/apache/coyote/http2/Stream.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/coyote/http2/Stream.java 
b/java/org/apache/coyote/http2/Stream.java
index 6c2626e..13ea2b5 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -1253,7 +1253,7 @@ class Stream extends AbstractNonZeroStream implements 
HeaderEmitter {
 
         private final void swallowUnread() throws IOException {
             if (inBuffer != null) {
-                synchronized (inputBuffer) {
+                synchronized (inBuffer) {
                     closed = true;
                     int unreadByteCount = inBuffer.position();
                     if (log.isDebugEnabled()) {

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to