Skip to content

Commit

Permalink
The caller is responsible for ensuring that the listener is in non-bl…
Browse files Browse the repository at this point in the history
…ocking mode.
  • Loading branch information
jonhoo committed Jul 14, 2024
1 parent 5a1e2b8 commit 100707e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ fn start_server() -> (
let addr = bind.local_addr().unwrap();

let server = async move {
bind.set_nonblocking(true).unwrap();
let bind = tokio::net::TcpListener::from_std(bind).unwrap();
loop {
let (conn, _) = bind.accept().await.unwrap();
Expand Down

0 comments on commit 100707e

Please sign in to comment.