From fa72975f34d2f3b19860240a3b564afb02037ff7 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 8 Oct 2019 14:46:22 +0600 Subject: [PATCH] extra trace logging --- actix-codec/src/framed_read.rs | 1 + actix-ioframe/src/dispatcher.rs | 1 + 2 files changed, 2 insertions(+) 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; }