Author: markt
Date: Fri Aug 7 14:51:55 2015
New Revision: 1694697
URL: http://svn.apache.org/r1694697
Log:
Add some debugging to try and understand current Gump failure
Modified:
tomcat/trunk/test/org/apache/coyote/http2/TestHttp2Section_5_3.java
Modified: tomcat/trunk/test/org/apache/coyote/http2/TestHttp2Section_5_3.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/coyote/http2/TestHttp2Section_5_3.java?rev=1694697&r1=1694696&r2=1694697&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/coyote/http2/TestHttp2Section_5_3.java
(original)
+++ tomcat/trunk/test/org/apache/coyote/http2/TestHttp2Section_5_3.java Fri Aug
7 14:51:55 2015
@@ -65,6 +65,8 @@ public class TestHttp2Section_5_3 extend
sendSettings(0, false, new Setting(4, 1024));
// Wait for the ack
parser.readFrame(true);
+ // Debugging Gump failure
+ System.err.println(output.getTrace());
output.clearTrace();
// At this point the connection window should be 1k and any new stream
@@ -80,7 +82,11 @@ public class TestHttp2Section_5_3 extend
sendSimpleGetRequest(17);
// 17-headers, 17-1k-body
parser.readFrame(true);
+ // Debugging Gump failure
+ System.err.println(output.getTrace());
parser.readFrame(true);
+ // Debugging Gump failure
+ System.err.println(output.getTrace());
output.clearTrace();
// Send additional requests. Connection window is empty so only headers
@@ -96,7 +102,11 @@ public class TestHttp2Section_5_3 extend
// Read some frames
// 19-headers, 21-headers
parser.readFrame(true);
+ // Debugging Gump failure
+ System.err.println(output.getTrace());
parser.readFrame(true);
+ // Debugging Gump failure
+ System.err.println(output.getTrace());
output.clearTrace();
// At this point 17 is blocked because the stream window is zero and
@@ -106,7 +116,11 @@ public class TestHttp2Section_5_3 extend
// is allocated by weight and then rounded up).
sendWindowUpdate(0, 1);
parser.readFrame(true);
+ // Debugging Gump failure
+ System.err.println(output.getTrace());
parser.readFrame(true);
+ // Debugging Gump failure
+ System.err.println(output.getTrace());
String trace = output.getTrace();
Assert.assertTrue(trace, trace.contains("19-Body-1"));
@@ -119,7 +133,11 @@ public class TestHttp2Section_5_3 extend
sendWindowUpdate(0, 1024);
parser.readFrame(true);
+ // Debugging Gump failure
+ System.err.println(output.getTrace());
parser.readFrame(true);
+ // Debugging Gump failure
+ System.err.println(output.getTrace());
trace = output.getTrace();
Assert.assertTrue(trace, trace.contains("19-Body-256"));
@@ -133,6 +151,8 @@ public class TestHttp2Section_5_3 extend
// 17-7k-body, 19~8k-body, 21~8k-body
for (int i = 0; i < 3; i++) {
parser.readFrame(true);
+ // Debugging Gump failure
+ System.err.println(output.getTrace());
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]