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:
parent
2ca1e74707
commit
8e541dcf58
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue