mirror of
https://github.com/YGGverse/nexy.git
synced 2026-03-31 17:25:27 +00:00
add stream flush function
This commit is contained in:
parent
7d3a8babc1
commit
2003cefb67
1 changed files with 6 additions and 0 deletions
|
|
@ -124,6 +124,12 @@ impl Connection {
|
|||
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!(
|
||||
"[{}] ! [{}] failed to response: `{e}`",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue