Skip to content

Test request buffering with HTTP/2 - #13513

Open
bneradt wants to merge 1 commit into
apache:masterfrom
bneradt:test-request-buffer-http2
Open

Test request buffering with HTTP/2#13513
bneradt wants to merge 1 commit into
apache:masterfrom
bneradt:test-request-buffer-http2

Conversation

@bneradt

@bneradt bneradt commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

The request-buffer AuTest only covered HTTP/1.1 clients,
leaving the HTTP/2 request-body buffering path unverified.

This patch adds an HTTP/2 POST replay and verifies both the body
received by the origin and the length reported by request_buffer.

Fixes: #6901

Copilot AI lite review requested due to automatic review settings August 6, 2026 23:20
@bneradt bneradt added this to the 11.0.0 milestone Aug 6, 2026
@bneradt bneradt self-assigned this Aug 6, 2026
The request-buffer AuTest only covered HTTP/1.1 clients,
leaving the HTTP/2 request-body buffering path unverified.

This patch adds an HTTP/2 POST replay and verifies both the body
received by the origin and the length reported by request_buffer.

Fixes: apache#6901

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the existing request_buffer AuTest replay to cover the HTTP/2 request-body buffering path, which previously only exercised HTTP/1.1 clients. It adds an HTTP/2 POST transaction over TLS and validates both origin-received body content and the plugin-reported buffered body length.

Changes:

  • Enable TLS for the replayed ATS instance to allow HTTP/2-over-TLS client sessions.
  • Add an HTTP/2 POST transaction that sends a request body and verifies the body received by the origin.
  • Add a new log validation assertion for the HTTP/2 request body length reported by request_buffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request buffer AuTest suite lacks of a case with HTTP2 client

2 participants