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 b211191b44 Better fix for the failing test
b211191b44 is described below
commit b211191b44a7fdb6fbb6bf18f6452caba565283e
Author: Mark Thomas <[email protected]>
AuthorDate: Sat Nov 7 08:40:42 2026 +0000
Better fix for the failing test
Co-authored by: Claude / Sonnet 5.5
---
test/org/apache/coyote/http2/TestHttp2Section_5_1.java | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/test/org/apache/coyote/http2/TestHttp2Section_5_1.java
b/test/org/apache/coyote/http2/TestHttp2Section_5_1.java
index 7ee01a59dd..fea6b584f7 100644
--- a/test/org/apache/coyote/http2/TestHttp2Section_5_1.java
+++ b/test/org/apache/coyote/http2/TestHttp2Section_5_1.java
@@ -159,17 +159,10 @@ public class TestHttp2Section_5_1 extends Http2TestBase {
// HTTP2 upgrade
http2Connect();
- // Build the simple request
- byte[] frameHeader = new byte[9];
- ByteBuffer headersPayload = ByteBuffer.allocate(128);
- buildSimpleGetRequest(frameHeader, headersPayload, null, 3);
-
- // 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);
+ // Send the headers for a POST (END_HEADERS set, END_STREAM not set)
that promises a body but does not send it.
+ // The servlet blocks reading the body so no response is generated
before the reset below. The header block
+ // must be complete else the RST is a connection error (RFC 9113,
section 6.2)
+ sendParameterPostRequest(3, null, null, 10, false);
// Send a rst
sendRst(3, Http2Error.INTERNAL_ERROR.getCode());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]