(server) fix: Let processor continue processing subsequence messages after writing into client
This commit is contained in:
@ -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}");
|
||||
|
Reference in New Issue
Block a user