Skip to content

10.2.x: Log malformed HTTP/2 requests#13105

Merged
cmcfarlen merged 1 commit intoapache:10.2.xfrom
bneradt:h2-malformed-request-txn-logging-10-2
Apr 21, 2026
Merged

10.2.x: Log malformed HTTP/2 requests#13105
cmcfarlen merged 1 commit intoapache:10.2.xfrom
bneradt:h2-malformed-request-txn-logging-10-2

Conversation

@bneradt
Copy link
Copy Markdown
Contributor

@bneradt bneradt commented Apr 20, 2026

Unlike HTTP/1 transactions, malformed HTTP/2 requests are rejected
before HttpSM creation, so they bypassed the normal transaction logging
path. That left malformed h2 traffic out of squid.log even when similar
h1 failures were visible.

This adds a pre-transaction LogAccess path for malformed h2 request
headers and emits a best-effort access log entry before resetting the
stream.

(cherry picked from commit 05554ca)

@bneradt bneradt requested a review from cmcfarlen April 20, 2026 18:23
@bneradt bneradt self-assigned this Apr 20, 2026
@bneradt bneradt changed the title H2 malformed request txn logging 10 2 10.2.x: log field fallbacks and malformed h2 logging Apr 20, 2026
@cmcfarlen cmcfarlen added this to the 10.2.0 milestone Apr 21, 2026
@cmcfarlen cmcfarlen removed this from ATS v10.2.x Apr 21, 2026
Unlike HTTP/1 transactions, malformed HTTP/2 requests are rejected
before HttpSM creation, so they bypassed the normal transaction logging
path. That left malformed h2 traffic out of squid.log even when similar
h1 failures were visible.

This adds a pre-transaction LogAccess path for malformed h2 request
headers and emits a best-effort access log entry before resetting the
stream.

(cherry picked from commit 05554ca)
@bneradt bneradt force-pushed the h2-malformed-request-txn-logging-10-2 branch from a1e158f to 774d563 Compare April 21, 2026 15:54
@bneradt bneradt changed the title 10.2.x: log field fallbacks and malformed h2 logging 10.2.x: Log malformed HTTP/2 requests Apr 21, 2026
@cmcfarlen cmcfarlen merged commit ede68af into apache:10.2.x Apr 21, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants