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 { match handle_incoming.await {
Ok(()) => {} Ok(()) => {}
Err(err) if err.is_locally_closed() => {} Err(err) if err.is_locally_closed() || err.is_timeout_closed() => {
Err(err) if err.is_timeout_closed() => {
log::debug!( log::debug!(
"[{id:#010x}] [{addr}] [{user}] connection timeout", "[{id:#010x}] [{addr}] [{user}] {err}",
id = conn.id(), id = conn.id(),
user = conn.auth, 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) => { Err(err) => {
log::warn!( log::warn!(
"[{id:#010x}] [{addr}] [unauthenticated] connection establishing error: {err}", "[{id:#010x}] [{addr}] [unauthenticated] connection establishing error: {err}",