Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node JS maxBuffer size exceeded #29

Closed
bgaillard opened this issue Sep 4, 2014 · 1 comment
Closed

Node JS maxBuffer size exceeded #29

bgaillard opened this issue Sep 4, 2014 · 1 comment

Comments

@bgaillard
Copy link
Contributor

Hi, on one of our big project we are executing huge unit test suites which outputs lots of logs.

We encounter the following error : Fatal error: stdout maxBuffer exceeded.

This error is caused by the default maxBuffer parameter value 200*1024 described here in the Node JS documentation : http://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback.
To fix it we need to modify the exec call in the plugin :

exec(cmd, function(err, stdout, stderr) {

Becomes

exec(cmd, {maxBuffer : 500 * 1024}, function(err, stdout, stderr) {

So, it would be great to have options in the plugin to configure the exec command.

@bgaillard
Copy link
Contributor Author

A pull request #30 has been created to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants