(error: &(dyn std::error::Error + 'static))
| 157 | } |
| 158 | |
| 159 | fn is_benign_connection_close(error: &(dyn std::error::Error + 'static)) -> bool { |
| 160 | let msg = error.to_string(); |
| 161 | msg.contains("connection closed") |
| 162 | || msg.contains("connection reset") |
| 163 | || msg.contains("connection error") |
| 164 | || msg.contains("error reading a body from connection") |
| 165 | || msg.contains("broken pipe") |
| 166 | } |
| 167 | |
| 168 | impl ServerState { |
| 169 | /// Create new server state. |
no outgoing calls
no test coverage detected