You've already forked step-ca-cli
mirror of
https://github.com/smallstep/cli.git
synced 2026-10-24 11:19:19 +03:00
proxyDirect waited for both copy goroutines via wg.Wait(). When the server closes the connection mid-session, the stdin->conn goroutine stays blocked reading a stdin that never reaches EOF (the ssh client holds the proxycommand's stdin open until it exits), deadlocking until an OS-level timeout reaps the process. Return as soon as either direction finishes instead. Extracted a testable proxyDirectWithIO and added a regression test. Fixes #1641 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
7.4 KiB
7.4 KiB