Flush at the start of data exchange

This commit is contained in:
boommy 2026-03-03 17:10:54 +04:00
parent 13a420a4a7
commit 03075b729d

View file

@ -149,6 +149,7 @@ impl<F: Fn(SimplexDirection, usize) + Send> SimplexPipe<F> {
self.last_activity = Instant::now();
let future = async {
self.sink.flush().await?;
if self.pending_chunk.is_none() {
let x = self.source.read().await?;
log_dir!(trace, self.source.id(), self.direction, "TCP data: {}", x);