This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 5cd6da7dca Additional debug logging after CI test failure
5cd6da7dca is described below
commit 5cd6da7dca87ddd92ac6be3ee2c0779696f198ab
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Jul 27 20:55:48 2023 +0100
Additional debug logging after CI test failure
Log the full trace before clearing it so the logs have the full picture
of what was received.
---
test/org/apache/coyote/http2/TestRfc9218.java | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/test/org/apache/coyote/http2/TestRfc9218.java
b/test/org/apache/coyote/http2/TestRfc9218.java
index c42fd6ed7b..6cfd557022 100644
--- a/test/org/apache/coyote/http2/TestRfc9218.java
+++ b/test/org/apache/coyote/http2/TestRfc9218.java
@@ -43,6 +43,10 @@ public class TestRfc9218 extends Http2TestBase {
readSimpleGetResponse();
}
+ String trace = output.getTrace();
+ System.out.println(trace);
+ output.clearTrace();
+
// At this point the connection window should be 1k
// Process a request on stream 17. This should consume the connection
window.
@@ -50,6 +54,8 @@ public class TestRfc9218 extends Http2TestBase {
// 17-headers, 17-1k-body
parser.readFrame();
parser.readFrame();
+ trace = output.getTrace();
+ System.out.println(trace);
output.clearTrace();
// Send additional requests. Connection window is empty so only
headers will be returned.
@@ -59,6 +65,8 @@ public class TestRfc9218 extends Http2TestBase {
// 19-headers, 21-headers
parser.readFrame();
parser.readFrame();
+ trace = output.getTrace();
+ System.out.println(trace);
output.clearTrace();
// At this point 17, 19 and 21 are all blocked because the connection
window is zero.
@@ -102,7 +110,7 @@ public class TestRfc9218 extends Http2TestBase {
parser.readFrame();
parser.readFrame();
- String trace = output.getTrace();
+ trace = output.getTrace();
Assert.assertTrue(trace.contains("17-Body-877\n"));
trace = trace.replace("17-Body-877\n", "");
Assert.assertTrue(trace.contains("19-Body-1170\n"));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]