From 3560dae590037de73ef015008f5076adae97c359 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 --- lib/_stream_readable.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index ea36e6ed62abf2..bdc263d6ef28f4 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);