You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2026/05/22 11:03:11 UTC
(tomcat) branch main updated: Further robustness improvements
This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 8422e9d7b2 Further robustness improvements
8422e9d7b2 is described below
commit 8422e9d7b21f6cc9ae787f7edeb911ed96d089db
Author: Mark Thomas <ma...@apache.org>
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 2f9d32a7fb..75d3d87328 100644
--- a/test/org/apache/coyote/http2/TestHttp2Section_8_1.java
+++ b/test/org/apache/coyote/http2/TestHttp2Section_8_1.java
@@ -646,7 +646,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());
}
@@ -739,7 +751,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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org