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

Method reportFailure

src/node/runtime/sshConnectionPool.ts:406–409  ·  view source on GitHub ↗

* Report a connection failure. * Call when SSH operations fail due to connection issues (not command failures). * This triggers backoff to prevent thundering herd on a failing host.

(config: SSHConnectionConfig, error: string)

Source from the content-addressed store, hash-verified

404 * This triggers backoff to prevent thundering herd on a failing host.
405 */
406 reportFailure(config: SSHConnectionConfig, error: string): void {
407 const key = makeConnectionKey(config);
408 this.markFailedByKey(key, error);
409 }
410
411 /**
412 * Mark connection as healthy by key (internal use)

Callers 4

throwPushFailureMethod · 0.45
spawnRemoteProcessMethod · 0.45
spawnRemoteProcessMethod · 0.45

Calls 2

markFailedByKeyMethod · 0.95
makeConnectionKeyFunction · 0.70

Tested by

no test coverage detected