mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-04 13:27:39 +03:00
Fix read filters ordering
This commit is contained in:
parent
531bafbae2
commit
079a1c9cbf
23 changed files with 642 additions and 325 deletions
|
@ -125,10 +125,15 @@ impl<F: Filter> Filter for TlsFilter<F> {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn release_read_buf(&self, src: BytesMut, nb: usize) -> Result<(), io::Error> {
|
||||
fn release_read_buf(
|
||||
&self,
|
||||
src: BytesMut,
|
||||
dst: &mut Option<BytesMut>,
|
||||
nb: usize,
|
||||
) -> io::Result<usize> {
|
||||
match self.inner {
|
||||
InnerTlsFilter::Server(ref f) => f.release_read_buf(src, nb),
|
||||
InnerTlsFilter::Client(ref f) => f.release_read_buf(src, nb),
|
||||
InnerTlsFilter::Server(ref f) => f.release_read_buf(src, dst, nb),
|
||||
InnerTlsFilter::Client(ref f) => f.release_read_buf(src, dst, nb),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue