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

commit 16e90646ff55e9941f625e0ed12c3ef495ecc4e7
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Nov 6 20:06:35 2026 +0000

    Fix failing test
---
 test/org/apache/coyote/http2/TestHttp2Section_5_1.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/org/apache/coyote/http2/TestHttp2Section_5_1.java 
b/test/org/apache/coyote/http2/TestHttp2Section_5_1.java
index 41cd4005e6..7ee01a59dd 100644
--- a/test/org/apache/coyote/http2/TestHttp2Section_5_1.java
+++ b/test/org/apache/coyote/http2/TestHttp2Section_5_1.java
@@ -164,8 +164,9 @@ public class TestHttp2Section_5_1 extends Http2TestBase {
         ByteBuffer headersPayload = ByteBuffer.allocate(128);
         buildSimpleGetRequest(frameHeader, headersPayload, null, 3);
 
-        // Remove the end of stream and end of headers flags
-        frameHeader[4] = 0;
+        // Remove the end of stream flag but keep the end of headers flag. The 
header block must be complete else the
+        // RST below is a connection error (RFC 9113, section 6.2)
+        frameHeader[4] = 0x04;
 
         // Process the request
         writeFrame(frameHeader, headersPayload);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to