-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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: read after destroy? #29477
Comments
I think both behaviours are okay, so I’d go with the variant that is less breaking, i.e. making it a noop. |
@addaleax: I've done a quick fix for the most problematic parts #29491. However, there seems to be an assumption that readable streams will still work with buffered data after I started on a "proper" fix but it quickly hit several tests #29485. Thoughts? @mcollina |
Reading the
Readable.read
implementation it is a bit unclear to me what happens and what should happen when this method is called afterdestroy()
.Should it be an error (e.g.
READ_AFTER_DESTROY
) or a noop?The text was updated successfully, but these errors were encountered: