Description
I created a reproducible repo https://github.com/davidfirst/stream-issue-node-14-1-0 with instructions on how to reproduce.
In short, I run exec()
and write data (string) to the ssh server through the stream.stdin
. When the string is small (~1MB) it works with no issue. When the string is 10MB it works on node <=14.0.0 but it hangs on node >= 14.1.0.
Another issue I found, not related to any node version is the performance. The longer the string the lower the transfer rate. I have a feeling that it is related to the back-pressure, but I tried with piping as well, which suppose to handle the backpressure.
More details in the README of the repo above.
I didn't create two issues because there is a good chance that fixing the performance issue will fix the first issue as well.
(to have some more context for this issue, see teambit/bit#2844).