Bound streamed exec-server HTTP response bodies - #32112
Merged
copyberry[bot] merged 1 commit intoJul 10, 2026
Merged
Conversation
## Why Frame-count backpressure does not bound the amount of executor-controlled data retained in streamed HTTP response queues, and a single body delta could exceed the intended wire size. ## What changed - Limit each decoded `http/request/bodyDelta` payload to 1 MiB, split locally produced response chunks at that boundary, and reject oversized incoming deltas. - Apply a shared 16 MiB byte budget across queued HTTP response streams. Release capacity as deltas are consumed and fail a stream when the budget is exhausted. ## Testing Added coverage for rejecting an oversized delta and for failing a stream after its queued deltas exhaust the shared byte budget. GitOrigin-RevId: be9205fef44b0ec96b84b31a8e059b1cb9cd3f3b
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/be9205fef44b0ec96b84b31a8e059b1cb9cd3f3b
branch
from
July 10, 2026 09:57
e8abd63 to
4ba2815
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/be9205fef44b0ec96b84b31a8e059b1cb9cd3f3b
branch
July 10, 2026 09:58
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Bound streamed exec-server HTTP response bodies
Why
Frame-count backpressure does not bound the amount of executor-controlled data
retained in streamed HTTP response queues, and a single body delta could exceed
the intended wire size.
What changed
http/request/bodyDeltapayload to 1 MiB, split locallyproduced response chunks at that boundary, and reject oversized incoming
deltas.
capacity as deltas are consumed and fail a stream when the budget is
exhausted.
Testing
Added coverage for rejecting an oversized delta and for failing a stream after
its queued deltas exhaust the shared byte budget.