[whatwg/streams] Should ReadableStreams with pull sources call pull until full? (#469)

Quick question, there's probably already been a consensus on this but it looks like ReadableStreams with pull sources do not call pull until full, at least with the default controller.

IE given a high water mark of 3 chunks and a pull source a ReadableStream will only call pull once rather than three times, assuming no read requests.

I assume the internal queues are meant to act as buffers. So shouldn't a ReadableStream attempt to fill its buffer? Simple solution seems to be to get rid of the pullAgain variable and just always call callPullIfNeeded after a successful pull.

---
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/issues/469

Received on Wednesday, 22 June 2016 18:35:24 UTC