Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
[skip ci] bump request timeout to 60 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Apr 8, 2017
1 parent 6b1b5a1 commit f3c343a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/lumo/scripts/npm_install.js
Expand Up @@ -15,6 +15,7 @@ var platformZip = 'lumo_' + platform2release[process.platform] + '.zip';
var version = process.env.npm_package_version;
var file = fs.createWriteStream(platformZip);
var executable = isWindows ? 'lumo.exe' : 'lumo';
var requestTimeout = 60 * 1000;

if (version == null) {
throw new Error('Aborting! $npm_package_version not defined in env.');
Expand Down Expand Up @@ -70,9 +71,9 @@ function setRequestTimeout(ms, req, cb) {
});
}

var req = request(url, { timeout: 30000 });
var req = request(url, { timeout: requestTimeout });

setRequestTimeout(30000, req, handleError);
setRequestTimeout(requestTimeout, req, handleError);

hookProgressBar(req);

Expand Down

0 comments on commit f3c343a

Please sign in to comment.