fix(network): set so_linger socket option to match cardano-node (#369)
This commit is contained in:
parent
83f9ea712b
commit
ad8491fe24
1 changed files with 1 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ impl Bearer {
|
|||
tcp_keepalive = tcp_keepalive.with_interval(tokio::time::Duration::from_secs(20));
|
||||
sock_ref.set_tcp_keepalive(&tcp_keepalive)?;
|
||||
sock_ref.set_nodelay(true)?;
|
||||
sock_ref.set_linger(Some(std::time::Duration::from_secs(0)))?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue