diff --git a/src/runtime/src/comms.rs b/src/runtime/src/comms.rs index 1232e29a..da0c19bb 100644 --- a/src/runtime/src/comms.rs +++ b/src/runtime/src/comms.rs @@ -111,7 +111,9 @@ async fn handle_connection(stream: &TcpStream, control: Rc {} Ok(false) => return Err(Error::UnexpectedPattern), - // peer has closed the connection + // Peer has closed the connection. + // Closing here is a normal condition so do not reported an error. + // An error is still reported if the connection is unexpectedly closed elsewhere. Err(smoltcp::Error::Illegal) => return Ok(()), Err(e) =>