@@ -74,7 +74,7 @@ impl Manager<TlsStream<TcpStream>, Error> for TlsConnection {
74
74
let raw_stream = async_std:: net:: TcpStream :: connect ( self . addr ) . await ?;
75
75
76
76
#[ cfg( feature = "unstable-config" ) ]
77
- raw_stream. set_nodelay ( self . config . no_delay ) ?;
77
+ raw_stream. set_nodelay ( self . config . tcp_no_delay ) ?;
78
78
79
79
let tls_stream = add_tls ( & self . host , raw_stream) . await ?;
80
80
Ok ( tls_stream)
@@ -86,7 +86,7 @@ impl Manager<TlsStream<TcpStream>, Error> for TlsConnection {
86
86
87
87
#[ cfg( feature = "unstable-config" ) ]
88
88
conn. get_ref ( )
89
- . set_nodelay ( self . config . no_delay )
89
+ . set_nodelay ( self . config . tcp_no_delay )
90
90
. map_err ( Error :: from) ?;
91
91
92
92
match Pin :: new ( conn) . poll_read ( & mut cx, & mut buf) {
@@ -105,12 +105,12 @@ impl Manager<TlsStream<TcpStream>, Error> for TlsConnection {
105
105
106
106
cfg_if:: cfg_if! {
107
107
if #[ cfg( feature = "rustls" ) ] {
108
- async fn add_tls( host: & str , stream: TcpStream ) -> Result <TlsStream <TcpStream >, std:: io:: Error > {
108
+ pub ( crate ) async fn add_tls( host: & str , stream: TcpStream ) -> Result <TlsStream <TcpStream >, std:: io:: Error > {
109
109
let connector = async_tls:: TlsConnector :: default ( ) ;
110
110
connector. connect( host, stream) . await
111
111
}
112
112
} else if #[ cfg( feature = "native-tls" ) ] {
113
- async fn add_tls(
113
+ pub ( crate ) async fn add_tls(
114
114
host: & str ,
115
115
stream: TcpStream ,
116
116
) -> Result <TlsStream <TcpStream >, async_native_tls:: Error > {
0 commit comments