improvements and fixes

This commit is contained in:
nora 2024-08-12 22:16:35 +02:00
parent 4c3f0a97aa
commit 7696484f0b
4 changed files with 28 additions and 5 deletions

View file

@ -87,6 +87,7 @@ async fn handle_connection(
.await
.wrap_err("reading from connection")?;
if read == 0 {
info!("Did not read any bytes from TCP stream, EOF");
return Ok(());
}
@ -100,6 +101,7 @@ async fn handle_connection(
return Err(err);
}
SshStatus::Disconnect => {
info!("Received disconnect from client");
return Ok(());
}
}