mirror of
https://github.com/TrustTunnel/TrustTunnel.git
synced 2026-04-28 03:39:53 +00:00
Flush at the start of data exchange
This commit is contained in:
parent
13a420a4a7
commit
03075b729d
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue