From 303a542e6edefde44670a717fb4ccd76bd79029b Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 3 Dec 2025 11:48:07 -0800 Subject: [PATCH] Improvement: include longer auto-select timeout in http agent options --- src/utils/proxy/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/proxy/http.js b/src/utils/proxy/http.js index 1a22a7f71..5db97c60a 100644 --- a/src/utils/proxy/http.js +++ b/src/utils/proxy/http.js @@ -111,7 +111,7 @@ export async function cachedRequest(url, duration = 5, ua = "homepage") { export async function httpProxy(url, params = {}) { const constructedUrl = new URL(url); const disableIpv6 = process.env.HOMEPAGE_PROXY_DISABLE_IPV6 === "true"; - const agentOptions = disableIpv6 ? { family: 4, autoSelectFamily: false } : {}; + const agentOptions = disableIpv6 ? { family: 4, autoSelectFamily: false } : { autoSelectFamilyAttemptTimeout: 500 }; let request = null; if (constructedUrl.protocol === "https:") {