You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[test]fnephemeral_port() -> Result{letmut sim = Builder::new().build();
sim.client("client",async{let sock = bind_to(0).await?;// turmoil should assign a port to the ephemeral rangeassert_ne!(sock.local_addr()?.port(), 0);assert!(sock.local_addr()?.port() >= 49152);Ok(())});
sim.run()}
It would be nice to support ephemeral port assignment. This is useful for clients that don't care about the specific port number; they just need a free port.
I tried the following code:
It would be nice to support ephemeral port assignment. This is useful for clients that don't care about the specific port number; they just need a free port.
From https://www.rfc-editor.org/rfc/rfc6335#section-6:
The text was updated successfully, but these errors were encountered: