From 8e541dcf58c52902b6aeb42d37eee06e1c91b2e3 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Mon, 13 May 2024 16:08:44 +0200 Subject: [PATCH] node: Set TCP NO_DELAY for node connections Just experimenting. I think this will be a better default for the type of data exchanged between nodes. --- radicle-node/src/wire/protocol.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/radicle-node/src/wire/protocol.rs b/radicle-node/src/wire/protocol.rs index 86322dce..2ac20c89 100644 --- a/radicle-node/src/wire/protocol.rs +++ b/radicle-node/src/wire/protocol.rs @@ -1102,6 +1102,7 @@ pub fn dial>( connection.set_read_timeout(Some(DEFAULT_CONNECTION_TIMEOUT))?; connection.set_write_timeout(Some(DEFAULT_CONNECTION_TIMEOUT))?; + connection.set_nodelay(true)?; Ok(session::( remote_addr,