Re: [streams] Port precise flow control to writable streams (#318)

Current pipeTo() is: read() and wait for dest.ready. When data is read and dest is ready, write the read data to dest.

For this kind of HWM=0 writable streams, pipeTo() should read() anyway when desiredSize becomes non-negative. I.e. non-negative desiredSize is treated as "ready". The actual value of desiredSize would be used to update precise pulling on readable stream to control amount to pull, but read() invocation happens anyway.

Maybe this works?



---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/318#issuecomment-136347467

Received on Monday, 31 August 2015 11:46:06 UTC