MCPcopy
hub / github.com/coder/mux / resetBackoff

Method resetBackoff

src/node/runtime/sshConnectionPool.ts:380–390  ·  view source on GitHub ↗

* Reset backoff for a connection (e.g., after user intervention)

(config: SSHConnectionConfig)

Source from the content-addressed store, hash-verified

378 * Reset backoff for a connection (e.g., after user intervention)
379 */
380 resetBackoff(config: SSHConnectionConfig): void {
381 const key = makeConnectionKey(config);
382 const health = this.health.get(key);
383 if (health) {
384 health.backoffUntil = undefined;
385 health.consecutiveFailures = 0;
386 health.status = "unknown";
387 this.clearReadyControlPaths(key);
388 log.info(`Reset backoff for SSH connection to ${config.host}`);
389 }
390 }
391
392 /**
393 * Mark connection as healthy.

Callers 1

Calls 3

makeConnectionKeyFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected