Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Allow an unlimited maxBuffer size
  • Loading branch information
jwdeitch authored Jan 12, 2017
commit 210083c7ce4bd614b72b1f2f57bc72992ba2819b
2 changes: 1 addition & 1 deletion lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ exports.execFile = function(file /*, args, options, callback*/) {
child.stdout.on('data', function onChildStdout(chunk) {
stdoutLen += encoding ? Buffer.byteLength(chunk, encoding) : chunk.length;

if (stdoutLen > options.maxBuffer) {
if (stdoutLen > options.maxBuffer && options.maxBuffer !== 0) {
ex = new Error('stdout maxBuffer exceeded');
kill();
} else {
Expand Down