Author: remm Date: Mon Oct 5 15:47:21 2015 New Revision: 1706858 URL: http://svn.apache.org/viewvc?rev=1706858&view=rev Log: A flush seems to be missing when writing a window update [for consistency at least].
Modified: tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java Modified: tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java?rev=1706858&r1=1706857&r2=1706858&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java (original) +++ tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java Mon Oct 5 15:47:21 2015 @@ -524,7 +524,7 @@ public class Http2UpgradeHandler extends if (!stream.isActive()) { activeRemoteStreamCount.decrementAndGet(); } - } + } ByteUtil.set31Bits(header, 5, stream.getIdentifier().intValue()); socketWrapper.write(true, header, 0, header.length); socketWrapper.write(true, data.array(), data.arrayOffset() + data.position(), @@ -545,6 +545,7 @@ public class Http2UpgradeHandler extends // Change stream Id and re-use ByteUtil.set31Bits(frame, 5, stream.getIdentifier().intValue()); socketWrapper.write(true, frame, 0, frame.length); + socketWrapper.flush(true); } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org