mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
perf: http请求增加建立连接超时配置
This commit is contained in:
@@ -294,6 +294,7 @@ export function createAgent(opts: CreateAgentOptions = {}) {
|
||||
{
|
||||
autoSelectFamily: true,
|
||||
autoSelectFamilyAttemptTimeout: 1000,
|
||||
connectTimeout: 5000, // 连接建立超时
|
||||
},
|
||||
opts
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user