mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-03 04:47:39 +03:00
Log ssl errors
This commit is contained in:
parent
eabb165dda
commit
bc51d800ff
3 changed files with 10 additions and 3 deletions
|
@ -1,5 +1,9 @@
|
|||
# Changes
|
||||
|
||||
## [0.1.6] - 2022-10-14
|
||||
|
||||
* Allow extracting TLS SNI server name and TLS PSK identity #136
|
||||
|
||||
## [0.1.5] - 2022-02-19
|
||||
|
||||
* Fix rustls hangs during handshake #103
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "ntex-tls"
|
||||
version = "0.1.5"
|
||||
version = "0.1.6"
|
||||
authors = ["ntex contributors <team@ntex.rs>"]
|
||||
description = "An implementation of SSL streams for ntex backed by OpenSSL"
|
||||
keywords = ["network", "framework", "async", "futures"]
|
||||
|
@ -29,6 +29,7 @@ ntex-bytes = "0.1.14"
|
|||
ntex-io = "0.1.8"
|
||||
ntex-util = "0.1.15"
|
||||
ntex-service = "0.3.1"
|
||||
log = "0.4"
|
||||
pin-project-lite = "0.2"
|
||||
|
||||
# openssl
|
||||
|
@ -39,7 +40,6 @@ tls_rust = { version = "0.20", package = "rustls", optional = true }
|
|||
|
||||
[dev-dependencies]
|
||||
ntex = { version = "0.5", features = ["openssl", "rustls", "tokio"] }
|
||||
log = "0.4"
|
||||
env_logger = "0.9"
|
||||
rustls-pemfile = { version = "0.2" }
|
||||
webpki-roots = { version = "0.22" }
|
||||
|
|
|
@ -217,7 +217,10 @@ impl<F: Filter> Filter for SslFilter<F> {
|
|||
io.want_shutdown(None);
|
||||
Ok((dst.len(), new_bytes))
|
||||
}
|
||||
Err(e) => Err(map_to_ioerr(e)),
|
||||
Err(e) => {
|
||||
log::trace!("SSL Error: {:?}", e);
|
||||
Err(map_to_ioerr(e))
|
||||
}
|
||||
};
|
||||
self.release_read_buf(dst);
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue