diff --git a/pallas-network/src/multiplexer.rs b/pallas-network/src/multiplexer.rs index c2af636..746b2f6 100644 --- a/pallas-network/src/multiplexer.rs +++ b/pallas-network/src/multiplexer.rs @@ -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(()) }