Closed tinchoz49 closed 2 years ago
I'd say, that's a bug on your end since you are not ending the writable side of the stream.
ie, if you add stream.end() that works yea?
ah :sweat_smile: is true in my head I was thinking it like a half open duplex. Thank you Mathias!
It's tricky. Cause we could end the iterator on end, but then you cannot catch close errors. We should prob make this clear in the docs tho!
I was trying to iterate over the data in a Duplex stream since extends from Readable but it never ends properly.
I think the problem is that in a Duplex stream the
close
event for the Readable side never happen. Is that the correct behavior in this case?