We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9645f1 commit 3fe89dbCopy full SHA for 3fe89db
tests/common.rs
@@ -222,6 +222,7 @@ fn init_log() -> StdErrLog {
222
}
223
224
fn rand_available_addr() -> net::SocketAddr {
225
+ // note this has a potential but unlikely race condition, if the port is grabbed before the caller binds it
226
let socket = net::UdpSocket::bind("127.0.0.1:0").unwrap();
227
socket.local_addr().unwrap()
228
0 commit comments