add stream flush function

This commit is contained in:
yggverse 2025-06-29 10:55:58 +03:00
parent 7d3a8babc1
commit 2003cefb67

View file

@ -124,6 +124,12 @@ impl Connection {
bytes.len() bytes.len()
) )
} }
if let Err(e) = self.stream.flush() {
eprintln!(
"[{}] ! [{}] failed to flush the stream: `{e}`",
self.address.server, self.address.client,
)
}
} }
Err(e) => eprintln!( Err(e) => eprintln!(
"[{}] ! [{}] failed to response: `{e}`", "[{}] ! [{}] failed to response: `{e}`",