Skip to content

Make the HTTP request-head size limit configurable - #953

Merged
fewensa merged 1 commit into
mainfrom
codeon/fewensa/FWN-365/a2-0dead31f35bc4f319b809a4513d468b2
Sep 11, 2026
Merged

Make the HTTP request-head size limit configurable#953
fewensa merged 1 commit into
mainfrom
codeon/fewensa/FWN-365/a2-0dead31f35bc4f319b809a4513d468b2

Conversation

@fewensa

@fewensa fewensa commented Sep 11, 2026

Copy link
Copy Markdown
Owner

Expose HttpServer::with_max_request_head_bytes with a 64 KiB default and reject zero before serving. Thread the configured limit through HTTP/1 request-head parsing and h2c upgrade handoff so both paths share one authority.

Document the setter in README.md and crates/rttp/README.md. Add below-limit, exact-limit, oversized, malformed, and body-limit independence tests on both paths.

Verified with cargo test -p rttp-server and cargo test -p rttp --test test_server --test http2_feature --features http2.

codeon:
  version: 1
  authority: FWN-365
  description: |-
    Expose HttpServer::with_max_request_head_bytes with a 64 KiB default and reject zero before serving. Thread the configured limit through HTTP/1 request-head parsing and h2c upgrade handoff so both paths share one authority. Document the setter in README.md and crates/rttp/README.md, and add below-limit, exact-limit, oversized, malformed, and body-limit independence tests on both paths.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-11T14:34:53.425803Z a7282a0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@fewensa
fewensa merged commit 37dfac4 into main Sep 11, 2026
1 check passed
@fewensa
fewensa deleted the codeon/fewensa/FWN-365/a2-0dead31f35bc4f319b809a4513d468b2 branch September 11, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant