Skip to content

Commit bedc02b

Browse files
fix(ssh): a slow reconnect no longer replaces a healthy port forward
The existing-forward check gave readiness 2s overall, below the 5s per-request allowance for probes through a forward, so a forward whose health response took longer than 2s was closed and replaced on every reconnect. Give the reuse check the same 5s budget. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 4457832 commit bedc02b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/ssh/src/tunnel.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1859,7 +1859,10 @@ const makeSshEnvironmentManager = Effect.fn("ssh/tunnel.SshEnvironmentManager.ma
18591859
remotePort: entry.remotePort,
18601860
});
18611861
const readinessExit = yield* Effect.exit(
1862-
waitForHttpReady({ baseUrl: entry.httpBaseUrl, timeoutMs: 2_000 }),
1862+
waitForHttpReady({
1863+
baseUrl: entry.httpBaseUrl,
1864+
timeoutMs: SSH_TUNNEL_READY_PROBE_TIMEOUT_MS,
1865+
}),
18631866
);
18641867
if (Exit.isSuccess(readinessExit)) {
18651868
yield* Effect.logDebug("ssh.environment.tunnel.reused", {

0 commit comments

Comments
 (0)