diff --git a/rkvm-client/src/client.rs b/rkvm-client/src/client.rs index d7d3838..373c299 100644 --- a/rkvm-client/src/client.rs +++ b/rkvm-client/src/client.rs @@ -38,6 +38,7 @@ pub async fn run( }; stream.set_linger(None).map_err(Error::Network)?; + stream.set_nodelay(false).map_err(Error::Network)?; log::info!("Connected to server"); diff --git a/rkvm-server/src/server.rs b/rkvm-server/src/server.rs index 977bbe1..b670dfb 100644 --- a/rkvm-server/src/server.rs +++ b/rkvm-server/src/server.rs @@ -142,6 +142,7 @@ async fn client( ) -> Result<(), ClientError> { let negotiate = async { stream.set_linger(None)?; + stream.set_nodelay(false)?; let stream = acceptor.accept(stream).await?; log::info!("{}: TLS connected", addr);