Skip to content

Streams: test respond() on a detached pull-into descriptor - #64195

Draft
MattiasBuelens wants to merge 1 commit into
web-platform-tests:masterfrom
MattiasBuelens:streams-respond-detached-pull-into-pending-read
Draft

MattiasBuelens wants to merge 1 commit into
web-platform-tests:masterfrom
MattiasBuelens:streams-respond-detached-pull-into-pending-read

Conversation

@MattiasBuelens

@MattiasBuelens MattiasBuelens commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

If a BYOB reader is released while its read(view) request is partially filled, the request’s pull-into descriptor remains pending. When the underlying source later calls respond(), the bytes written so far are moved into the stream’s queue. A pending read() request from a default reader acquired afterwards should then be fulfilled with those queued bytes.

Accompanies whatwg/streams#1393.
See whatwg/streams#1390.

Responding to a pull-into descriptor whose reader type is "none" moves
the bytes written into it to the queue, and then fills any pending
pull-into descriptors from that queue. It never fills pending read
requests, so with a default reader and no autoAllocateChunkSize the bytes
stay queued and the read() never settles.

See whatwg/streams#1390.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant