-
Notifications
You must be signed in to change notification settings - Fork 5k
fetch: deliver response body bytes as a borrowed slice; reserve Content-Length for buffered consumers #36570
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
Merged
Changes from 6 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
253d892
fetch: reserve Content-Length on the buffered-body handoff so arrayBu…
robobun 995e917
test: import node:net at module scope
robobun 4ca3599
tighten comments
robobun 54ab69a
gate the Content-Length reserve on BufferAll mode
robobun a8b1e0a
gate the Content-Length reserve on on_start_buffering, not BufferAll …
robobun 51103b4
clear is_buffering_body when a ByteStream attaches
robobun b8c5b61
AsyncHTTP: drop response_buffer field + init/init_sync param
robobun 5302034
InternalState: replace body_out_str with owned decoded_body
robobun 62fb870
s3: S3HttpSimpleTask reads response_buffer, extends in http_callback
robobun df2cb07
FetchTasklet: drop response_buffer; read result.body as &[u8]
robobun df3e7fd
http/lib: own decoded_body, deliver &[u8] in progress callback
robobun 2f17b0f
NetworkTask.notify: read result.body slice, accumulate locally
robobun df0accc
s3/download_stream: result.body is &[u8]; drop response_buffer field
robobun 314db32
RemoteImageDownload: extend response_buffer from result.body; drop in…
robobun 3cf915d
s3/client.rs: drop response_buffer arg from AsyncHTTP::init calls
robobun 0881b6d
http: send_sync takes &mut MutableString; channel appends body
robobun 4bb2ac0
s3 download_stream: accumulate body on every callback
robobun 10b0708
http: lift decoded_body to stack before terminal callback
robobun 67b4da8
send_sync: set response_buffer before boxing, drop unsafe write
robobun ff882dc
NetworkTask::notify: reset response_buffer on new-attempt metadata
robobun 636c841
FetchTasklet: clear is_buffering_body under mutex on stream attach
robobun 5170259
test(fetch): trim long-redirect loop under debug/ASAN
robobun 2f5f428
abort-signal-leak: scale iterations on debug to fit 5s budget
robobun c3f621e
fetch-leak fixture: cache the 2MB string for URLSearchParams
robobun 23aaf8e
fetch-tcp-stress: scale iterations on debug/ASAN to fit 30s budget
robobun 8214d20
fetch-leak: cut ITERATIONS to 20 on debug/ASAN for URLSearchParams
robobun 7157194
revert unrelated test-timing tweaks (scope creep; pre-existing on main)
robobun cf1f11f
FetchTasklet: release scheduled_response_buffer capacity above 512K o…
robobun c6d6a5a
s3/download_stream: handle_oom on write; name DECODED_BODY_RETAIN_CAP
robobun 48b9d2a
http: carry owned body_owned Vec on terminal callback for zero-copy h…
robobun 7ba280e
s3/simple_request: add SAFETY comment for detach_lifetime (clippy)
robobun 637d54b
FetchTasklet: adopt body_owned before reserving to avoid transient 2x…
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
Some comments aren't visible on the classic Files Changed page.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
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.