mirror of
https://tangled.org/tranquil.farm/tranquil-pds
synced 2026-02-08 21:30:08 +00:00
fix: removed some bs
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
[target.x86_64-unknown-linux-gnu]
|
||||
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
|
||||
@@ -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
|
||||
|
||||
@@ -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(¶ms) {
|
||||
tracing::warn!(error = %e, "failed to set TCP keepalive");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user