Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #1425. Non-multipart bodies now use Actix's
Bytesextractor, which enforces the existingPayloadConfigfor both Content-Length and chunked requests. Stream errors propagate instead of panicking. The request parser's HTTP error status is preserved, with a generic reason phrase in the response body.Summary
A body over
ROBYN_MAX_PAYLOAD_SIZEnow receives HTTP 413; a body exactly at the limit remains accepted. Malformed chunked input receives HTTP 400, and the worker still serves a subsequent valid request. Multipart buffering is unchanged; parser errors from either branch retain their Actix status instead of being converted to 500.Added 15 live-server integration cases covering empty, below-limit, exact-limit, and oversized text/JSON/binary bodies, chunked boundaries, and malformed transfer recovery. These tests were frozen before implementation: 5 failed and 10 passed on base
1170748; all 15 now pass.Validation on macOS / Python 3.12.13 / Rust 1.99.0:
maturin develop --extras alland all 555 Python integration/unit tests pass. Existing suite ran from a temporary copy with only its 8080/8081 port literals remapped to free ports, preserving an unrelated local listener. The focused 15 tests also pass unchanged in this checkout.cargo check,cargo test(0 Rust tests),cargo fmt --check, andcargo clippypass. Existing Rust warnings remain.git diff --checkpass. Upstream Nox bootstrap and platform CI remain to be verified.AI assistance was used: Nodus-hosted
openai/gpt-oss-120bsupplied a draft from a researched prompt; Codex authored the independent tests, reviewed/corrected the draft, and performed local validation. Graphify queryRequest from_actix_request PayloadConfig error statustraced the request parser to the server's response conversion; verified those source paths and refreshed the graph after edits.PR Checklist
Pre-Commit Instructions