Skip to content

Commit 6e44ee3

Browse files
committed
Increasing buffer size to allow for zip files of up to 10MB
1 parent 0388a3b commit 6e44ee3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,10 @@ Lambda.prototype._zip = function (program, codeDirectory, callback) {
142142
Lambda.prototype._nativeZip = function (program, codeDirectory, callback) {
143143
var zipfile = this._zipfileTmpPath(program),
144144
cmd = 'zip -r ' + zipfile + ' .';
145+
145146
exec(cmd, {
146-
cwd: codeDirectory
147+
cwd: codeDirectory,
148+
maxBuffer: 10 * 1024 * 1024
147149
}, function (err) {
148150
if (err !== null) {
149151
return callback(err, null);

0 commit comments

Comments
 (0)