node
node copied to clipboard
stream: don't read more than can handle in webstream
fix #46347
TODO
- [ ] add tests? how could I test that the memory usage is not rising? 🤔
Cc @mcollina
I think the current behavior in the failing test should be the expected one, why would we need 2 reads?
the failed test is: https://github.com/nodejs/node/blob/b164038c863dd226a4c943148d94c3b14df8c550/test/parallel/test-whatwg-webstreams-adapters-to-readablewritablepair.js#L174-L209
ping @mcollina
In don't know. I would need to dig deep into this and currently do not have time. Maybe @jasnell has some ideas.
It looks like this still needs a test.
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open.
Closing this because it has stalled. Feel free to reopen if this issue/PR is still relevant, or to ping the collaborator who labelled it stalled if you have any questions.