* Reset backoff for a connection (e.g., after user intervention)
(config: SSHConnectionConfig)
| 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. |
no test coverage detected