Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Expand `target_os` condition for keep-alive
✗ CI failure Lorenz Leutgeb committed 16 days ago
commit 03be9293ab355708d16f150eb5453fe8fb2e858d
parent 6ce2d00be237e75524cd31129be6766935736c1a
1 failed (1 total) View logs
1 file changed +15 -1
modified crates/radicle-node/src/wire.rs
@@ -1197,7 +1197,21 @@ fn session<G: Ecdh<Pk = NodeId>>(
            .with_time(time::Duration::from_secs(30))
            .with_interval(time::Duration::from_secs(10));

-
        #[cfg(not(windows))]
+
        #[cfg(any(
+
            target_os = "android",
+
            target_os = "dragonfly",
+
            target_os = "freebsd",
+
            target_os = "fuchsia",
+
            target_os = "illumos",
+
            target_os = "ios",
+
            target_os = "visionos",
+
            target_os = "linux",
+
            target_os = "macos",
+
            target_os = "netbsd",
+
            target_os = "tvos",
+
            target_os = "watchos",
+
            target_os = "cygwin",
+
        ))]
        let ka = ka.with_retries(3);

        if let Err(e) = connection.set_tcp_keepalive(&ka) {