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