tools: 压测客户端超时 60s→90s(适配浏览器路径等待链)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user