diff --git a/scripts/postinstall.js b/scripts/postinstall.js index 8c010f71b..80c092ab7 100755 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -133,8 +133,8 @@ async function main() { // Keeps the TCP connection alive when sending multiple requests // Ref: https://github.com/node-fetch/node-fetch/issues/1735 const agent = proxyUrl - ? new HttpsProxyAgent(proxyUrl, { keepAlive: true }) - : new Agent({ keepAlive: true }); + ? new HttpsProxyAgent(proxyUrl, { keepAlive: false }) + : new Agent({ keepAlive: false }); const resp = await fetch(url, { agent }); const hash = createHash("sha256");