Skip to main content

spawn_loopback_ssh

Function spawn_loopback_ssh 

Source
pub fn spawn_loopback_ssh(
    opts: ServeSshOptions,
) -> Result<(SocketAddr, Arc<AtomicBool>, JoinHandle<Result<(), ServerError>>), ServerError>
Expand description

Ephemeral loopback SSH listener for arks serve ssh-smoke --git-pack and tests.

Keeps the bound TcpListener alive and passes it directly into the serving thread (no port-drop TOCTOU window or blind sleep).