diff --git a/actix-codec/src/framed_read.rs b/actix-codec/src/framed_read.rs index f54b2c23..b470d1bf 100644 --- a/actix-codec/src/framed_read.rs +++ b/actix-codec/src/framed_read.rs @@ -209,6 +209,7 @@ where // get a spurious 0 that looks like EOF self.buffer.reserve(1); if 0 == try_ready!(self.inner.read_buf(&mut self.buffer)) { + trace!("read 0 bytes, mark stream as eof"); self.eof = true; } diff --git a/actix-ioframe/src/dispatcher.rs b/actix-ioframe/src/dispatcher.rs index 422a10d4..57713b10 100644 --- a/actix-ioframe/src/dispatcher.rs +++ b/actix-ioframe/src/dispatcher.rs @@ -147,6 +147,7 @@ where } Ok(Async::NotReady) => return false, Ok(Async::Ready(None)) => { + log::trace!("Client disconnected"); self.dispatch_state = FramedState::Stopping; return true; }