-
Notifications
You must be signed in to change notification settings - Fork 5k
http: couple fetch() receive backpressure to JS body consumption (h1/h2/h3) #29831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Jarred-Sumner
merged 16 commits into
main
from
farm/0a9cea98/h2-window-update-backpressure
Jun 26, 2026
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
54b1b2a
fetch: pause receiving the response body once 64 KiB is buffered unti…
Jarred-Sumner 879f43c
fetch: pause after the first delivered body chunk instead of at a 64K…
Jarred-Sumner f61afa8
[autofix.ci] apply automated fixes
autofix-ci[bot] f281ca1
fetch: collapse ignore_data + is_buffering_body into BodyReceiveMode …
Jarred-Sumner 9c2adc1
Update fetch-backpressure.test.ts
Jarred-Sumner fe70784
test: await RSS settle instead of Bun.sleep(200) in stall scripts
Jarred-Sumner be38508
fetch: enqueue resume unconditionally on every BodyReceiveMode transi…
Jarred-Sumner 4e5171c
fetch: combine body_receive_mode and receive_paused into one AtomicU8
Jarred-Sumner 4eda402
http: only resume_receive when mode is no longer Paused
Jarred-Sumner 096ecff
http: gate per-chunk body flush on body_receive_mode being wired
Jarred-Sumner eeb00c4
fetch: drop receive backpressure when the body stream has no reader
robobun d9d425f
http: guard on_writable set_timeout against receive_paused; skip RSS …
robobun becf66c
fetch: signal_drained on has_remaining; drop subprocess RSS bound; 1 …
robobun 28c505f
fetch: transition Paused->AutoPause in on_start_streaming; mirror bod…
robobun a1e272f
fetch: surface a socket error that lands while receive is paused
Jarred-Sumner 93a8e7e
h2: hold a ref_scope across resume+drain in drain_queued_receive_resumes
robobun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.