fix(adapter): align response body limit with core - #395
Merged
Merged
Conversation
Reproduces the 16 MiB adapter ceiling despite the core's 256 MiB response default across the shared adapter conformance path. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Source adapter body bounds from the core defaults so explicit response limits up to 256 MiB are accepted while request limits remain capped at 16 MiB. Preserve structured terminal stream errors instead of retrying hard failures as transient empty reads. Closes #394 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Update h2 to the release fixing RUSTSEC-2026-0258 and replace the newly yanked chacha20 0.10.1 release so the dependency policy gate can complete. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refresh compatible transitive dependencies for newly published js-yaml, nanoid, postcss, and undici advisories so the npm audit gate passes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Summary
maxResponseBodyBytesvalues through the core's 256 MiB default while retaining the independent 16 MiB request-body boundsBODY_TOO_LARGEis not replaced by a generic or invalid-handle failureValidation
cargo test -p iroh-http-core -p iroh-http-adapternpm run typecheckFull
npm run cireaches an unrelated existingcargo denyfailure for RUSTSEC-2026-0258 (h20.4.15; patched in 0.4.16).Closes #394