Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
Fixed too low maxBuffer setting (#14)
Browse files Browse the repository at this point in the history
When phantom returns large pages, it runs out of buffer space.

Fix by setting to 1MiB.
  • Loading branch information
madssj authored and chrisvfritz committed Nov 23, 2016
1 parent 12972d9 commit 52e0456
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/compile-to-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module.exports = function (staticDir, route, options, callback) {
ChildProcess.execFile(
Phantom.path,
phantomArguments,
{maxBuffer: 1048576},
function (error, stdout, stderr) {
if (error || stderr) {
// Retry if we haven't reached the max number of capture attempts
Expand Down

0 comments on commit 52e0456

Please # to comment.