Skip to content
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

[Fizz] Write chunks to a buffer with no re-use #24033

Closed

Conversation

sebmarkbage
Copy link
Collaborator

Opened on behalf of @gnoff

Chunks were previously enqueued to a ReadableStream as they were written. We now write them to a view over an ArrayBuffer and enqueue them only when writing has completed or the buffer's size is exceeded. In addition this copy now ensures we don't attempt to re-send buffers that have already been transferred.

@gnoff gnoff force-pushed the bugfix-readablestream-buffering branch 4 times, most recently from e099a72 to 01b60db Compare March 5, 2022 19:22
chunks were previously enqueued to a ReadableStream as they were written. We now write them to a view over an ArrayBuffer
and enqueue them only when writing has completed or the buffer's size is exceeded. In addition this copy now ensures
we don't attempt to re-send buffers that have already been transferred.
@gnoff gnoff force-pushed the bugfix-readablestream-buffering branch from 01b60db to 2e302f7 Compare March 5, 2022 19:32
@gnoff
Copy link
Collaborator

gnoff commented Mar 5, 2022

closing and reopening so i can request a review from seb :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants