From 756ab9caadcba43d59149584accdd204ac173e40 Mon Sep 17 00:00:00 2001 From: Brian White Date: Thu, 3 Dec 2015 18:37:38 -0500 Subject: [PATCH] stream: be less eager with readable flag As of 34b535f4c, 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: https://github.com/nodejs/node/issues/4125 PR-URL: https://github.com/nodejs/node/pull/4141 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- lib/_stream_readable.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 99be380196591f..7074cd2ca508a5 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -385,7 +385,6 @@ function onEofChunk(stream, state) { } } state.ended = true; - stream.readable = false; // emit 'readable' now to make sure it gets picked up. emitReadable(stream);