fix: removed some bs

This commit is contained in:
lewis
2026-02-08 17:04:33 +02:00
parent ea27772a47
commit 1ff22c3dee
3 changed files with 6 additions and 6 deletions

View File

@@ -1,2 +0,0 @@
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=mold"]

View File

@@ -113,6 +113,6 @@ testcontainers-modules = { version = "0.14", features = ["postgres"] }
wiremock = "0.6"
[profile.release]
lto = "thin"
lto = "fat"
strip = true
codegen-units = 1

View File

@@ -373,9 +373,11 @@ fn configure_socket(stream: &TcpStream) {
if let Err(e) = sock_ref.set_tcp_nodelay(true) {
tracing::warn!(error = %e, "failed to set TCP_NODELAY");
}
let params = socket2::TcpKeepalive::new()
.with_time(Duration::from_secs(30))
.with_interval(Duration::from_secs(10));
let keepalive = socket2::TcpKeepalive::new()
.with_time(Duration::from_secs(30));
#[cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))]
let keepalive = keepalive.with_interval(Duration::from_secs(10));
let params = keepalive;
if let Err(e) = sock_ref.set_tcp_keepalive(&params) {
tracing::warn!(error = %e, "failed to set TCP keepalive");
}