diff --git a/veilid-core/src/network_manager/native/protocol/tcp.rs b/veilid-core/src/network_manager/native/protocol/tcp.rs index 285d4bd9..2749bf8e 100644 --- a/veilid-core/src/network_manager/native/protocol/tcp.rs +++ b/veilid-core/src/network_manager/native/protocol/tcp.rs @@ -52,7 +52,8 @@ impl RawTcpNetworkConnection { let header = [b'V', b'L', len as u8, (len >> 8) as u8]; network_result_try!(stream.write_all(&header).await.into_network_result()?); - stream.write_all(&message).await.into_network_result() + network_result_try!(stream.write_all(&message).await.into_network_result()?); + stream.flush().await.into_network_result() } #[instrument(level="trace", err, skip(self, message), fields(network_result, message.len = message.len()))]