mirror of https://github.com/fafhrd91/actix-net
Update rustls.rs
This commit is contained in:
parent
cca77d3ce1
commit
7e5a85468d
|
@ -100,7 +100,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
pub enum RustlsConnectorServiceFuture<T, U> {
|
pub enum RustlsConnectorServiceFuture<T, U> {
|
||||||
// See issue https://github.com/briansmith/webpki/issues/54
|
/// See issue https://github.com/briansmith/webpki/issues/54
|
||||||
InvalidDns,
|
InvalidDns,
|
||||||
Future {
|
Future {
|
||||||
connect: Connect<U>,
|
connect: Connect<U>,
|
||||||
|
@ -120,7 +120,7 @@ where
|
||||||
Self::InvalidDns => Poll::Ready(Err(
|
Self::InvalidDns => Poll::Ready(Err(
|
||||||
io::Error::new(io::ErrorKind::Other, "rustls currently only handles hostname-based connections. See https://github.com/briansmith/webpki/issues/54")
|
io::Error::new(io::ErrorKind::Other, "rustls currently only handles hostname-based connections. See https://github.com/briansmith/webpki/issues/54")
|
||||||
)),
|
)),
|
||||||
Self::Future { connect, connection} => {
|
Self::Future { connect, connection } => {
|
||||||
let stream = ready!(Pin::new(connect).poll(cx))?;
|
let stream = ready!(Pin::new(connect).poll(cx))?;
|
||||||
let connection = connection.take().unwrap();
|
let connection = connection.take().unwrap();
|
||||||
trace!("SSL Handshake success: {:?}", connection.host());
|
trace!("SSL Handshake success: {:?}", connection.host());
|
||||||
|
|
Loading…
Reference in New Issue