Open marshall007 opened 7 years ago
interesting. i expect that this needs some updates its fallen quite a bit behind on streams.
@soldair I tried forking this project and switching it to use through2
internally, but that seemed to have no effect. Happy to help investigate. Let me know if there's anything I can do.
@soldair to clarify, the behavior when piping to another "forkfriend" stream is that only n
records are processed off the stream before the end
event is triggered. Where n
is equal to the number of children specified when calling .add(<script>, <args>, <n>)
.
In other words, it appears that the stream is closed after each of the child processes in the first stream process a single record.
oh. rather curious
Given the following setup:
This stream does not work correctly:
However, if I pipe to an intermediary no-op
Transform
stream, everything does work as expected: