mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 18:37:41 +02:00
do not log WouldBlock error from socket accept
This commit is contained in:
@ -741,9 +741,12 @@ fn start_accept_thread(
|
||||
break
|
||||
}
|
||||
},
|
||||
Err(ref e) if connection_error(e) => continue,
|
||||
Err(ref e) if e.kind() == io::ErrorKind::WouldBlock =>
|
||||
break,
|
||||
Err(ref e) if connection_error(e) =>
|
||||
continue,
|
||||
Err(e) => {
|
||||
error!("Error accepting connection: {:?}", e);
|
||||
error!("Error accepting connection: {}", e);
|
||||
// sleep after error
|
||||
thread::sleep(sleep);
|
||||
break
|
||||
|
Reference in New Issue
Block a user