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:
cloudhead 2024-05-13 16:08:44 +02:00
parent 2ca1e74707
commit 8e541dcf58
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -1102,6 +1102,7 @@ pub fn dial<G: Signer + Ecdh<Pk = NodeId>>(
connection.set_read_timeout(Some(DEFAULT_CONNECTION_TIMEOUT))?; connection.set_read_timeout(Some(DEFAULT_CONNECTION_TIMEOUT))?;
connection.set_write_timeout(Some(DEFAULT_CONNECTION_TIMEOUT))?; connection.set_write_timeout(Some(DEFAULT_CONNECTION_TIMEOUT))?;
connection.set_nodelay(true)?;
Ok(session::<G>( Ok(session::<G>(
remote_addr, remote_addr,