Skip to content

Commit 3560dae

Browse files
committed
stream: be less eager with readable flag
As of 34b535f, test-child-process-flush-stdio was failing on CentOS 5 systems in CI due to the change in stream state checking in `child_process`. This commit fixes those failures by making readable streams less eager in setting their readable flag on EOF. Fixes: nodejs#4125
1 parent 2b1ecfe commit 3560dae

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/_stream_readable.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,6 @@ function onEofChunk(stream, state) {
385385
}
386386
}
387387
state.ended = true;
388-
stream.readable = false;
389388

390389
// emit 'readable' now to make sure it gets picked up.
391390
emitReadable(stream);

0 commit comments

Comments
 (0)