tangled
alpha
login
or
join now
tranquil.farm
/
tranquil-pds
149
fork
atom
Our Personal Data Server from scratch!
tranquil.farm
oauth
atproto
pds
rust
postgresql
objectstorage
fun
149
fork
atom
overview
issues
19
pulls
2
pipelines
fix: removed some bs
lewis.moe
1 month ago
0c9fc6a5
37e06be8
+6
-6
3 changed files
expand all
collapse all
unified
split
.cargo
config.toml
Cargo.toml
crates
tranquil-ripple
src
transport.rs
-2
.cargo/config.toml
···
1
1
-
[target.x86_64-unknown-linux-gnu]
2
2
-
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
+1
-1
Cargo.toml
···
113
113
wiremock = "0.6"
114
114
115
115
[profile.release]
116
116
-
lto = "thin"
116
116
+
lto = "fat"
117
117
strip = true
118
118
codegen-units = 1
+5
-3
crates/tranquil-ripple/src/transport.rs
···
373
373
if let Err(e) = sock_ref.set_tcp_nodelay(true) {
374
374
tracing::warn!(error = %e, "failed to set TCP_NODELAY");
375
375
}
376
376
-
let params = socket2::TcpKeepalive::new()
377
377
-
.with_time(Duration::from_secs(30))
378
378
-
.with_interval(Duration::from_secs(10));
376
376
+
let keepalive = socket2::TcpKeepalive::new()
377
377
+
.with_time(Duration::from_secs(30));
378
378
+
#[cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))]
379
379
+
let keepalive = keepalive.with_interval(Duration::from_secs(10));
380
380
+
let params = keepalive;
379
381
if let Err(e) = sock_ref.set_tcp_keepalive(¶ms) {
380
382
tracing::warn!(error = %e, "failed to set TCP keepalive");
381
383
}