| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| // hit the flow rate of the stream (c.desiredSize). | ||
| queueMicrotask(() => { | ||
| if (c.desiredSize <= 0) { | ||
| if (c.desiredSize < 0) { |
There was a problem hiding this comment.
Would draw attention of reviewers to this specific update it seems when we turn this into a ReadableByteStream the high water mark for bytestreams is 0 and for normal default streams is 1 hence we have to remove the equality here
see:
node/lib/internal/webstreams/readablestream.js
Lines 282 to 298 in 2ccfb23
also each byte is considered to be an element in the case of byte streams and hence the desiredSize can go below 0, I nonetheless asserted that the memory isnt overflowing in the existing tests but do take a look at them too if they look correct!
Thank You!
Sorry, something went wrong.
|
cc @nodejs/whatwg-stream |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
lgtm
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes: #47993