CLI: inline simple gateway probe caps
This commit is contained in:
parent
b2d714b119
commit
938ffd7a1f
@ -14,8 +14,6 @@ const MISSING_SCOPE_PATTERN = /\bmissing scope:\s*[a-z0-9._-]+/i;
|
||||
type TargetKind = "explicit" | "configRemote" | "localLoopback" | "sshTunnel";
|
||||
|
||||
const INACTIVE_LOOPBACK_PROBE_BUDGET_MS = 800;
|
||||
const REMOTE_PROBE_BUDGET_MS = 1_500;
|
||||
const SSH_TUNNEL_PROBE_BUDGET_MS = 2_000;
|
||||
|
||||
export type GatewayStatusTarget = {
|
||||
id: string;
|
||||
@ -131,9 +129,9 @@ export function resolveProbeBudgetMs(
|
||||
// remote-mode status checks do not stall on an expected local miss.
|
||||
return target.active ? overallMs : Math.min(INACTIVE_LOOPBACK_PROBE_BUDGET_MS, overallMs);
|
||||
case "sshTunnel":
|
||||
return Math.min(SSH_TUNNEL_PROBE_BUDGET_MS, overallMs);
|
||||
return Math.min(2_000, overallMs);
|
||||
default:
|
||||
return Math.min(REMOTE_PROBE_BUDGET_MS, overallMs);
|
||||
return Math.min(1_500, overallMs);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user