Re: [whatwg/streams] Fix makeReadableBackpressureByteSocketStream to drain all data (#504)

I think the `v.byteLength - v.byteOffset` too-small case is the one worth worrying about. With a promise-returning `.select2()`, it should work fine; the next call to `.select2()` will immediately fulfill and we'll start going down the no-byobRequest path. So unless the kernel buffer fills up in one event loop turn we'll be OK. Whereas with the readable event we're in trouble.

I'll push a spec revision to this PR branch for people to review :)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/504#issuecomment-239941542

Received on Monday, 15 August 2016 21:56:26 UTC