Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

🤖 bug: OpenSSH shared health probe is killed by the starting caller's abort signal

Chiusa
#5,112 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start in src/node/runtime/sshConnectionPool.ts at SSHConnectionPool.acquireConnection and compare the shared-probe behavior with the SSH2 fix in #5110. Read waitForPromiseWithTimeout and add a held-open probe test covering an aborting caller and a joining caller. Done means the shared probe survives the starting caller's abort while each caller can still abort or time out independently.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

SSHConnectionPool.acquireConnection (OpenSSH) starts a shared (singleflighted) health probe with the starting caller's abort signal: this.probeConnection(config, probeTimeoutMs, key, requestedControlPath, options.abortSignal) in src/node/runtime/sshConnectionPool.ts. On abort, probeConnection kills the probe process (SIGKILL), so the shared promise rejects for every caller that joined it through this.inflight.get(key). A joiner with maxWaitMs: 0 fails with an abort it never made; a joiner with a budget loops and starts a new probe.

This is the OpenSSH counterpart of #5101, which #5110 fixes for the SSH2 pool (the shared connect takes no caller's signal; each caller races its own abort and deadline).

Proposal

Start the shared probe without a caller's abort signal (bounded by its own probe timeout), and keep each caller's abort on its own wait (waitForPromiseWithTimeout already takes the caller's signal). Test with a probe held open, as in #5110.

Found by the final readiness check of #5110. It is pre-existing and outside that PR's scope.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

Lingua principale
TypeScript
Stelle
2.1k
Fork
139
Merge medio
3h 24m
PR unite (30g)
954

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di coder/xum

Tutte le issue di coder/xum

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.