Skip to content

node: ensure that streams2 won't `.end()` stdin

Rodrigo Muino Tomonari requested to merge github/fork/indutny/fix/gh-1068 into v1.x

Stdin is purely read-only stream. Although, net.Socket might be used to create it if stdin is in fact a Pipe or TCP socket, the stream.Duplex should not try to call .end() on it.

Fix: https://github.com/iojs/io.js/issues/1068

cc @rvagg

Merge request reports

Loading