mirror of
https://github.com/mikedilger/chorus.git
synced 2026-06-02 07:02:09 +00:00
Don't penalize I/O errors
This commit is contained in:
parent
974beabcee
commit
814d95899b
@ -319,6 +319,11 @@ async fn handle_http_request(
|
||||
session_exit = SessionExit::Timeout;
|
||||
msg = "Timed Out (with no subscriptions)";
|
||||
}
|
||||
ChorusError::Io(_) => {
|
||||
// Usually "Connection reset by peer" but any I/O error
|
||||
// isn't a big deal.
|
||||
msg = "Reset";
|
||||
}
|
||||
_ => {
|
||||
log::error!(target: "Client", "{}: {}", peer, e);
|
||||
session_exit = SessionExit::ErrorExit;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user