diff --git a/quinn/src/runtime/async_io.rs b/quinn/src/runtime/async_io.rs index 3eb2c4f21..63c12ec2d 100644 --- a/quinn/src/runtime/async_io.rs +++ b/quinn/src/runtime/async_io.rs @@ -89,7 +89,7 @@ impl UdpSocket { fn new(sock: std::net::UdpSocket) -> io::Result { Ok(Self { inner: udp::UdpSocketState::new((&sock).into())?, - io: Async::new(sock)?, + io: Async::new_nonblocking(sock)?, }) } }