builder-util-runtime
Advanced tools
Comparing version 8.6.0 to 8.6.1
@@ -317,8 +317,13 @@ "use strict"; | ||
addTimeOutHandler(request, callback) { | ||
const timeoutCb = () => { | ||
request.abort(); | ||
callback(new Error("Request timed out")); | ||
}; | ||
request.on("socket", socket => { | ||
socket.setTimeout(60 * 1000, () => { | ||
request.abort(); | ||
callback(new Error("Request timed out")); | ||
}); | ||
socket.setTimeout(60 * 1000, timeoutCb); | ||
}); | ||
request.on("close", () => { | ||
setTimeout(timeoutCb, 30 * 1000); | ||
}); | ||
} | ||
@@ -325,0 +330,0 @@ |
{ | ||
"name": "builder-util-runtime", | ||
"version": "8.6.0", | ||
"version": "8.6.1", | ||
"main": "out/index.js", | ||
@@ -5,0 +5,0 @@ "author": "Vladimir Krivosheev", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141565
1767