perf: http请求增加建立连接超时配置

This commit is contained in:
xiaojunnuo
2026-02-06 12:00:40 +08:00
parent 66d0d0e213
commit 3c85602ab1

View File

@@ -294,6 +294,7 @@ export function createAgent(opts: CreateAgentOptions = {}) {
{
autoSelectFamily: true,
autoSelectFamilyAttemptTimeout: 1000,
connectTimeout: 5000, // 连接建立超时
},
opts
);