saulecabrera opened issue #12568:
Consider
async fn test_unspecified_remote_addr(family: IpAddressFamily) { let sock = UdpSocket::create(family).unwrap(); let unspec = IpSocketAddress::unspecified(family, PORT); let result = sock.send(vec![0; 1], Some(unspec)).await; assert!(matches!(result, Err(ErrorCode::InvalidArgument))); }The test above fails.
According to the spec:
_
invalid-argument: The IP address inremote-addressis set to INADDR_ANY (0.0.0.0/::)._The current implementation returns
remote-unreachableinstead. The behavior is consistent on macOS, Windows and Linux.
saulecabrera added the bug label to Issue #12568.
saulecabrera added the wasi label to Issue #12568.
alexcrichton commented on issue #12568:
cc @badeend
Last updated: Feb 24 2026 at 04:36 UTC