mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-30 18:34:36 +01:00
do not log WouldBlock error from socket accept
This commit is contained in:
parent
67f383f346
commit
31e1aab9a4
@ -1,5 +1,9 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
|
## 0.4.8 (2018-03-xx)
|
||||||
|
|
||||||
|
* Do not log WouldBlock error from socket accept
|
||||||
|
|
||||||
## 0.4.7 (2018-03-11)
|
## 0.4.7 (2018-03-11)
|
||||||
|
|
||||||
* Fix panic on unknown content encoding
|
* Fix panic on unknown content encoding
|
||||||
|
@ -741,9 +741,12 @@ fn start_accept_thread(
|
|||||||
break
|
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) => {
|
Err(e) => {
|
||||||
error!("Error accepting connection: {:?}", e);
|
error!("Error accepting connection: {}", e);
|
||||||
// sleep after error
|
// sleep after error
|
||||||
thread::sleep(sleep);
|
thread::sleep(sleep);
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user