Skip to content

Commit

Permalink
request: with $HTTP(S)_PROXY, keep connections alive for 10s
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Jul 25, 2023
1 parent 5ce0129 commit 793cc9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ let getAgent = () => plainAgent
if (proxyAddress) {
const agent = new ProxyAgent(proxyAddress, {
keepAlive: true,
keepAliveMsecs: 10 * 1000, // 10s
})
getAgent = () => agent
} else if (localAddresses) {
Expand Down

0 comments on commit 793cc9e

Please sign in to comment.