0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test
Dave 34b535f4ca child_process: flush consuming streams
When a client calls read() with a nonzero argument
on a Socket, that Socket sets this._consuming to true.
It never sets this._consuming back to false.
ChildProcess.flushStdio() currently doesn't flush
any streams where _consuming is truthy. But, that means
that it never flushes any stream that has ever been read from.
This prevents a child process from ever closing if one of
its streams has been read from, causing issue #4049. This
commit allows consuming streams to be flushed, and the
child process to emit a close event.

Fixes: https://github.com/nodejs/node/issues/4049
PR-URL: https://github.com/nodejs/node/pull/4071
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2015-12-01 09:55:35 -05:00
..
abort
addons test: fix path to module for repl test on Windows 2015-11-15 16:33:11 -08:00
cctest
debugger debugger: introduce exec method for debugger 2015-11-17 12:11:40 -08:00
disabled
fixtures module: fix column offsets in errors 2015-11-20 16:26:24 -05:00
gc
internet test: eliminate multicast test FreeBSD flakiness 2015-11-30 20:45:38 -08:00
message test: remove flaky status from eval_messages test 2015-10-20 12:16:00 -07:00
parallel child_process: flush consuming streams 2015-12-01 09:55:35 -05:00
pummel test: skip/replace weak crypto tests in FIPS mode 2015-11-19 16:31:11 -05:00
sequential module: fix column offsets in errors 2015-11-20 16:26:24 -05:00
testpy
timers
.eslintrc
common.js test: move ArrayStream to common 2015-11-26 21:16:08 -05:00