Fix error handing for nested filters

This commit is contained in:
Nikolay Kim 2021-12-28 00:08:35 +06:00
parent 8b3a1bc474
commit 89f758f8c4
15 changed files with 71 additions and 75 deletions

View file

@ -77,10 +77,10 @@ impl<F: Filter> Filter for TlsFilter<F> {
}
#[inline]
fn want_shutdown(&self) {
fn want_shutdown(&self, err: Option<io::Error>) {
match self.inner {
InnerTlsFilter::Server(ref f) => f.want_shutdown(),
InnerTlsFilter::Client(ref f) => f.want_shutdown(),
InnerTlsFilter::Server(ref f) => f.want_shutdown(err),
InnerTlsFilter::Client(ref f) => f.want_shutdown(err),
}
}