title: Stdout buffer issue using node child_process
body: <p>I'm trying to execute curl using node child_process to get a JSON file (about 220Ko) from a shared folder in a local network. But it actually returns a buffer problem that I can't get throught.
  Here is my code:</p>
  
  <pre><code>var exec = require('child_process').exec;
  
  var execute = function(command, callback){
      exec(command, function(error, stdout, stderr){ callback(error, stdout); });
  };
  
  execute("curl http://" + ip + "/file.json", function(err, json, outerr) {
      if(err) throw err;
      console.log(json);
  })
  </code></pre>
  
  <p>And here is the error I get:</p>
  
  <pre><code>if(err) throw err;
            ^
  Error: stdout maxBuffer exceeded.
      at Socket.&lt;anonymous&gt; (child_process.js:678:13)
      at Socket.EventEmitter.emit (events.js:95:17)
      at Socket.&lt;anonymous&gt; (_stream_readable.js:746:14)
      at Socket.EventEmitter.emit (events.js:92:17)
      at emitReadable_ (_stream_readable.js:408:10)
      at emitReadable (_stream_readable.js:404:5)
      at readableAddChunk (_stream_readable.js:165:9)
      at Socket.Readable.push (_stream_readable.js:127:10)
      at Pipe.onread (net.js:526:21)
  </code></pre>