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 8d124c8b02 Fix failing test
8d124c8b02 is described below

commit 8d124c8b021522899bbd50a5bbc508e6c0e65588
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