Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Don't fail connection if TCP_NODELAY errors
cloudhead committed 1 year ago
commit 9f36320d839026a95e8306637035762f05d36e17
parent 064ece32ac0a0bd0efe4f459dcb0462bafc236e6
1 file changed +5 -1
modified radicle-node/src/wire/protocol.rs
@@ -1108,7 +1108,11 @@ pub fn dial<G: Signer + Ecdh<Pk = NodeId>>(

    connection.set_read_timeout(Some(DEFAULT_CONNECTION_TIMEOUT))?;
    connection.set_write_timeout(Some(DEFAULT_CONNECTION_TIMEOUT))?;
-
    connection.set_nodelay(true)?;
+

+
    // There are issues with setting TCP_NODELAY on WSL. Not a big deal.
+
    if let Err(e) = connection.set_nodelay(true) {
+
        log::warn!(target: "wire", "Unable to set TCP_NODELAY on fd {}: {e}", connection.as_raw_fd());
+
    }

    Ok(session::<G>(
        remote_addr,