Added a 1MB maxBuffer since the default 200kb is too small on larger proto codebases

This commit is contained in:
Olivier Boucher 2018-03-16 11:20:20 -04:00
parent 07ace87c1a
commit 4ed3d5452c
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ var exe_ext = process.platform === 'win32' ? '.exe' : '';
var plugin = path.resolve(__dirname, 'grpc_node_plugin' + exe_ext);
var child_process = execFile(plugin, process.argv.slice(2), {encoding: 'buffer'}, function(error, stdout, stderr) {
var child_process = execFile(plugin, process.argv.slice(2), {encoding: 'buffer', maxBuffer: 1024 * 1000}, function(error, stdout, stderr) {
if (error) {
throw error;
}