Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upasync_iterator doesn't return the last chunk #35789
Comments
The async iterator can sometimes miss the last chunk when there has been an asynchronous event and a null chunk as used by test-quic-simple-server-uni.js Fixes: nodejs#35789
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
QUIC must be enabled
Additional information
node/lib/internal/streams/readable.js
Line 1098 in 7083425
This line, committed 10 days ago, is the culprit, removing the
stream.destroyedcondition makes it workThis happens when the stream has been asynchronously closed by the time the last read call is made