This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
     new 6aa6dfd8cc Further robustness improvements
6aa6dfd8cc is described below

commit 6aa6dfd8cc331f7b3741d6654c1831b5d3c6595e
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 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to