get read buf from inner filter for ssl filters

This commit is contained in:
Nikolay Kim 2021-12-22 17:52:16 +06:00
parent ab3c2efa66
commit 211eb00715
5 changed files with 10 additions and 8 deletions

View file

@ -144,7 +144,7 @@ impl IoState {
}
#[inline]
pub(super) fn shutdown_filters(&self) -> Result<(), io::Error> {
pub(super) fn shutdown_filters(&self) -> io::Result<()> {
let mut flags = self.flags.get();
if !flags.intersects(Flags::IO_ERR | Flags::IO_SHUTDOWN) {
let result = match self.filter.get().poll_shutdown() {

View file

@ -647,9 +647,7 @@ mod unixstream {
continue;
}
Poll::Ready(Err(e)) => {
log::trace!(
"write task is closed with err during shutdown"
);
log::trace!("write task is closed with err during shutdown");
this.state.close(Some(e));
return Poll::Ready(());
}