Skip to content

Commit 756ab9c

Browse files
mscdexrvagg
authored andcommitted
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: #4125 PR-URL: #4141 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 458facd commit 756ab9c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/_stream_readable.js

-1
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)