tools: 压测客户端超时 60s→90s(适配浏览器路径等待链)

This commit is contained in:
BigCode
2026-10-29 20:53:13 +08:00
parent 125a2ab7de
commit a3a92aff3f
+1 -1
View File
@@ -63,7 +63,7 @@ async function fire(): Promise<void> {
const t = Date.now();
stat.sent++; stat.inflight++;
try {
const res = await fetch(url, { headers: { authorization: `Bearer ${TOKEN}` }, signal: AbortSignal.timeout(60000) });
const res = await fetch(url, { headers: { authorization: `Bearer ${TOKEN}` }, signal: AbortSignal.timeout(90000) });
const gate = res.headers.get("x-serp-gate");
const attempts = res.headers.get("x-serp-attempts");
const totalMs = Number(res.headers.get("x-serp-total-ms") ?? 0);