-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stream: don't read when paused #34106
Conversation
Readable should not read when paused. Noticed while working on further streamifying net with _construct.
@nodejs/streams |
What happens if there is buffered data and the stream is destroyed after pause? Is it possible to read the buffered data? It seems this does not touch |
I'm not sure I follow the question.
Yea, I can't say I'm an expert on the readable side of things either. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There is something really weird going on here with |
93c43da
to
d5960f5
Compare
3af0084
to
8da065a
Compare
Another problem here is that This is quite a rabbit hole. I won't be able to sleep if I continue digging 😨. |
I think it's best to leave this in its current and simplest form. There are a lot of issues here that need to be resolved to fix this properly. A bit overwhelming at the moment. |
Even simplest form fails. Closing this for now. |
Readable should not read when paused. Noticed while working
on further streamifying net with _construct.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes