Merge pull request #328 from rustfs/nugine/performance/tcp_nodelay

feat(rustfs/main): set TCP_NODELAY
This commit is contained in:
loverustfs
2025-04-15 20:47:06 +08:00
committed by GitHub

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