INNER CODE UNIT · Rust

Err

ekzhang/sshx · crates/sshx-server/src/lib.rs:97

            if let Err(err) = tcp_stream.set_nodelay(true) {
                debug!("failed to set TCP_NODELAY on incoming connection: {err:#}");
            }
        });
        self.listen(listener).await
    }

    /// Send a graceful shutdown signal to the server.
    pub fn shutdown(&self) {
        // Stop receiving new network connections.
        self.shutdown.shutdown();
        // Terminate each of the existing sessions.
        self.state.shutdown();
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…