mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-03 21:07:39 +03:00
Optimize io layout (#388)
This commit is contained in:
parent
d81e089059
commit
f5bad7bfa0
8 changed files with 215 additions and 168 deletions
|
@ -167,11 +167,12 @@ impl FilterLayer for SslFilter {
|
|||
Ok(new_bytes)
|
||||
}
|
||||
Err(ref e) if e.code() == ssl::ErrorCode::ZERO_RETURN => {
|
||||
log::debug!("{}: SSL Error: {:?}", buf.tag(), e);
|
||||
buf.want_shutdown();
|
||||
Ok(new_bytes)
|
||||
}
|
||||
Err(e) => {
|
||||
log::trace!("SSL Error: {:?}", e);
|
||||
log::trace!("{}: SSL Error: {:?}", buf.tag(), e);
|
||||
Err(map_to_ioerr(e))
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue