From f8ee3f7482e7321fa05fed3979ae0028014d8694 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 9 Oct 2023 09:32:04 -0700 Subject: [PATCH] Add another blocking accept --- crates/test-programs/src/bin/preview2_tcp_sample_application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/test-programs/src/bin/preview2_tcp_sample_application.rs b/crates/test-programs/src/bin/preview2_tcp_sample_application.rs index 1f7ffda8431d..a2b648106e5d 100644 --- a/crates/test-programs/src/bin/preview2_tcp_sample_application.rs +++ b/crates/test-programs/src/bin/preview2_tcp_sample_application.rs @@ -45,7 +45,7 @@ fn test_sample_application(family: IpAddressFamily, bind_address: IpSocketAddres } { - let (_accepted, input, _output) = listener.accept().unwrap(); + let (_accepted, input, _output) = listener.blocking_accept().unwrap(); let data = input.blocking_read(second_message.len() as u64).unwrap(); // Check that we sent and recieved our message!