This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 300079d427 Further robustness improvements
300079d427 is described below
commit 300079d427d9ddbffed69dcc8687baed4d00d25f
Author: Mark Thomas <[email protected]>
AuthorDate: Fri May 22 11:46:11 2026 +0100
Further robustness improvements
---
.../apache/coyote/http2/TestHttp2Section_8_1.java | 28 ++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
diff --git a/test/org/apache/coyote/http2/TestHttp2Section_8_1.java
b/test/org/apache/coyote/http2/TestHttp2Section_8_1.java
index 86b47469cd..21a7a29cb0 100644
--- a/test/org/apache/coyote/http2/TestHttp2Section_8_1.java
+++ b/test/org/apache/coyote/http2/TestHttp2Section_8_1.java
@@ -645,7 +645,19 @@ public class TestHttp2Section_8_1 extends Http2TestBase {
}
}
// Read body
- parser.readFrame();
+ skip = true;
+ while (skip) {
+ parser.readFrame();
+ if (output.getTrace().startsWith("3-RST")) {
+ // Ignore additional resets for stream 3
+ output.clearTrace();
+ } else if (output.getTrace().contains("WindowSize")) {
+ // Ignore the window updates
+ output.clearTrace();
+ } else {
+ skip = false;
+ }
+ }
Assert.assertEquals(getSimpleResponseTrace(5), output.getTrace());
}
@@ -738,7 +750,19 @@ public class TestHttp2Section_8_1 extends Http2TestBase {
}
}
// Read body
- parser.readFrame();
+ skip = true;
+ while (skip) {
+ parser.readFrame();
+ if (output.getTrace().startsWith("3-RST")) {
+ // Ignore additional resets for stream 3
+ output.clearTrace();
+ } else if (output.getTrace().contains("WindowSize")) {
+ // Ignore the window updates
+ output.clearTrace();
+ } else {
+ skip = false;
+ }
+ }
Assert.assertEquals(getSimpleResponseTrace(5), output.getTrace());
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]