(server) fix: Let processor continue processing subsequence messages after writing into client

This commit is contained in:
2025-07-12 22:12:16 +08:00
parent 579cdcae12
commit 7933b2cfff

View File

@ -46,7 +46,7 @@ impl TcpServer {
}
if ready.is_writable() {
match socket.try_write(b"Hello from server written in Rust!") {
Ok(_) => break,
Ok(_) => continue,
Err(e) if e.kind() == ErrorKind::WouldBlock => continue,
Err(e) => {
log::error!("Failed to write to TCP client socket: {e}");