Pure-Rust asynchronous SSH library, both client and server

#68 Feature request: graceful shutdown

Opened by daviessm on February 4, 2022
daviessm on February 4, 2022

I’d like to be able to listen for a shutdown signal and have the thrussh server shut down like in warp:

pub fn bind_with_graceful_shutdown(
    self,
    addr: impl Into<SocketAddr> + 'static,
    signal: impl Future<Output = ()> + Send + 'static
) -> (SocketAddr, impl Future<Output = ()> + 'static)