feat(rustfs/main): set TCP_NODELAY

This commit is contained in:
Nugine
2025-04-15 19:36:34 +08:00
parent 85c8ea5ba6
commit 04874f5986

View File

@@ -320,6 +320,10 @@ async fn run(opt: config::Opt) -> Result<()> {
}
};
if let Err(err) = socket.set_nodelay(true) {
warn!(?err, "Failed to set TCP_NODELAY");
}
if has_tls_certs {
debug!("TLS certificates found, starting with SIGINT");
let tls_socket = match tls_acceptor