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
Adapt to changes in Streams #1044
Conversation
Although the long-term relationship isn't obvious, whatwg/fetch#1044 wants this at least for now
Fixes #780. Fixes #976. Follows whatwg/streams#1045.
3f565fa
to
056878d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
I don't have any better ideas for how to phrase the looping constructs.
fetch.bs
Outdated
<li><p>If the ongoing fetch is not <a for=fetch>terminated</a>, then perform the | ||
<a>transmit-body loop</a> given <var>request</var>, <var>body</var>, and <var>reader</var>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like cheating. Don't we have to post a task to get back out of "in parallel"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, oops, I meant to do that.
The corresponding streams PR has been merged, although we need to wait 24 hours or so before the linking database updates and we can remove the whatpr.org links. |
This is ready to merge, @annevk. |
Fixes #780. Fixes #976. Follows whatwg/streams#1045.
(At least, I think this fixes #976. That's a long issue with lots of text, but this significantly reduces the amount of "in parallel" that happens in upload streaming, so it seems likely to address the problem.)
This should land after whatwg/streams#1045 and needs some updates once it does, so tagging "do not merge yet". But it's ready for review.
The "looping" algorithms could potentially use better names; bikeshed help welcome.
Preview | Diff