mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 18:40:39 +08:00
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.
This commit is contained in:
@@ -1102,6 +1102,7 @@ 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)?;
|
||||
|
||||
Ok(session::<G>(
|
||||
remote_addr,
|
||||
|
||||
Reference in New Issue
Block a user