Skip to content

Commit

Permalink
change: tcp connection tls adaptation
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscaOrtegaG committed Aug 20, 2024
1 parent 7f9eec7 commit 2c1175b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/tcp_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl ClientConnection for ClientTCPConnection {

// let mut stream: TcpStream = TcpStream::connect_timeout(&server_addr,timeout)?;
let conn_task = TcpStream::connect(&server_addr);
let mut stream: TcpStream = Stream::new(&connector, server_addr);
let mut stream: TcpStream = TcpStream::connect(server_addr).await?;
// stream.set_read_timeout(Some(timeout))?; //-> Se hace con tokio

// stream.write(&full_msg)?;
Expand Down

0 comments on commit 2c1175b

Please sign in to comment.