aboutsummaryrefslogtreecommitdiff
path: root/lib/_stream_readable.js
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2015-12-03 18:37:38 -0500
committerBrian White <mscdex@mscdex.net>2015-12-03 21:59:44 -0500
commit292218828eea50861680ac9276b1b764e7342134 (patch)
tree83ef9b6c4251d904165cd3673eacb315949e9059 /lib/_stream_readable.js
parenta9c0c65f9eca5593a775b2b7cb03e35806f24683 (diff)
downloadandroid-node-v8-292218828eea50861680ac9276b1b764e7342134.tar.gz
android-node-v8-292218828eea50861680ac9276b1b764e7342134.tar.bz2
android-node-v8-292218828eea50861680ac9276b1b764e7342134.zip
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 <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/_stream_readable.js')
-rw-r--r--lib/_stream_readable.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js
index ea36e6ed62..bdc263d6ef 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);