1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-27 18:02:58 +01:00

extra trace logging

This commit is contained in:
Nikolay Kim 2019-10-08 14:46:22 +06:00
parent fe5de2510d
commit fa72975f34
2 changed files with 2 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}