You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2015/06/10 23:54:25 UTC

svn commit: r1684770 - /tomcat/trunk/java/org/apache/coyote/http2/Stream.java

Author: markt
Date: Wed Jun 10 21:54:24 2015
New Revision: 1684770

URL: http://svn.apache.org/r1684770
Log:
Sync and notify on the correct object (the Stream) for stream flow control.

Modified:
    tomcat/trunk/java/org/apache/coyote/http2/Stream.java

Modified: tomcat/trunk/java/org/apache/coyote/http2/Stream.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/Stream.java?rev=1684770&r1=1684769&r2=1684770&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http2/Stream.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http2/Stream.java Wed Jun 10 21:54:24 2015
@@ -318,9 +318,9 @@ public class Stream extends AbstractStre
                     if (thisWriteStream < 1) {
                         // Need to block until a WindowUpdate message is
                         // processed for this stream
-                        synchronized (this) {
+                        synchronized (Stream.this) {
                             try {
-                                wait();
+                                Stream.this.wait();
                             } catch (InterruptedException e) {
                                 // TODO: Possible shutdown?
                             }
@@ -335,9 +335,9 @@ public class Stream extends AbstractStre
                     if (thisWrite < 1) {
                         // Need to block until a WindowUpdate message is
                         // processed for this connection
-                        synchronized (this) {
+                        synchronized (Stream.this) {
                             try {
-                                wait();
+                                Stream.this.wait();
                             } catch (InterruptedException e) {
                                 // TODO: Possible shutdown?
                             }



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