Author: markt
Date: Thu Aug 20 11:10:24 2015
New Revision: 1696757
URL: http://svn.apache.org/r1696757
Log:
Expand the test to ensure that once the flow control window goes negative,
nothing is written until it becomes positive again.
Modified:
tomcat/trunk/test/org/apache/coyote/http2/TestHttp2Section_6_9.java
Modified: tomcat/trunk/test/org/apache/coyote/http2/TestHttp2Section_6_9.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/coyote/http2/TestHttp2Section_6_9.java?rev=1696757&r1=1696756&r2=1696757&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/coyote/http2/TestHttp2Section_6_9.java
(original)
+++ tomcat/trunk/test/org/apache/coyote/http2/TestHttp2Section_6_9.java Thu Aug
20 11:10:24 2015
@@ -203,6 +203,22 @@ public class TestHttp2Section_6_9 extend
"3-Body-4096\n", output.getTrace());
output.clearTrace();
+ // Now use a settings frame to further reduce the size of the flow
+ // control window. This should make the stream 3 window negative
+ sendSettings(0, false, new SettingValue(4, 2 * 1024));
+ // Ack
+ parser.readFrame(true);
+ Assert.assertEquals("0-Settings-Ack\n", output.getTrace());
+ output.clearTrace();
+
+ // Now use a settings frame to increase the size of the flow control
+ // window. The stream 3 window should still be negative
+ sendSettings(0, false, new SettingValue(4, 3 * 1024));
+ // Ack
+ parser.readFrame(true);
+ Assert.assertEquals("0-Settings-Ack\n", output.getTrace());
+ output.clearTrace();
+
// Do a POST that won't be affected by the above limit
sendSimplePostRequest(5, null);
// Window size updates after reading POST body
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]