1
0

timeout / locally closed for not-yet-opened stream

This commit is contained in:
EAimTY 2023-06-03 20:39:23 +09:00
parent f298fd7d25
commit 056f880a29

View File

@ -103,10 +103,9 @@ impl Connection {
match handle_incoming.await {
Ok(()) => {}
Err(err) if err.is_locally_closed() => {}
Err(err) if err.is_timeout_closed() => {
Err(err) if err.is_locally_closed() || err.is_timeout_closed() => {
log::debug!(
"[{id:#010x}] [{addr}] [{user}] connection timeout",
"[{id:#010x}] [{addr}] [{user}] {err}",
id = conn.id(),
user = conn.auth,
);
@ -119,7 +118,9 @@ impl Connection {
}
}
}
Err(err) if err.is_locally_closed() || err.is_timeout_closed() => unreachable!(),
Err(err) if err.is_locally_closed() || err.is_timeout_closed() => {
log::debug!("[{id:#010x}] [{addr}] [unauthenticated] {err}", id = 0);
}
Err(err) => {
log::warn!(
"[{id:#010x}] [{addr}] [unauthenticated] connection establishing error: {err}",