Archived
1
0

Default keepAlive to true for proxy agent

This commit is contained in:
Asher
2024-03-11 14:13:21 -08:00
parent 8c65ff8d0d
commit 132f7d1470
3 changed files with 17 additions and 0 deletions

View File

@ -105,6 +105,7 @@ export class UpdateProvider {
logger.debug("Making request", field("uri", uri))
const isHttps = uri.startsWith("https")
const agent = new ProxyAgent({
keepAlive: true,
getProxyForUrl: () => httpProxyUri || "",
})
const httpx = isHttps ? https : http