Skip to content

Commit efc4f60

Browse files
Remove TLS handshake IO handling from server and client functions
1 parent 5d3c95c commit efc4f60

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

validation/esp32-test/src/main.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,6 @@ fn run_tls_server(server_config: ServerConfig, tx: mpsc::Sender<u16>) {
113113

114114
let mut tls_stream = Stream::new(&mut tls_conn, &mut tcp_stream);
115115

116-
// Perform TLS handshake
117-
if let Err(e) = tls_conn.complete_io(&mut tls_stream) {
118-
error!("TLS handshake failed: {:?}", e);
119-
return;
120-
}
121-
122116
info!("TLS handshake completed successfully");
123117

124118
// Read and echo data
@@ -180,12 +174,6 @@ fn run_tls_client(client_config: ClientConfig, port: u16) {
180174

181175
let mut tls_stream = Stream::new(&mut tls_conn, &mut tcp_stream);
182176

183-
// Perform TLS handshake
184-
if let Err(e) = tls_conn.complete_io(&mut tls_stream) {
185-
error!("TLS handshake failed: {:?}", e);
186-
return;
187-
}
188-
189177
info!("TLS handshake completed successfully");
190178

191179
// Send test message

0 commit comments

Comments
 (0)