Stream: git-wasmtime

Topic: wasmtime / issue #12568 [wasi-sockets] Inconsistency in u...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 11 2026 at 15:38):

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 in remote-address is set to INADDR_ANY (0.0.0.0 / ::)._

The current implementation returns remote-unreachable instead. The behavior is consistent on macOS, Windows and Linux.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 11 2026 at 15:38):

saulecabrera added the bug label to Issue #12568.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 11 2026 at 15:38):

saulecabrera added the wasi label to Issue #12568.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 12 2026 at 01:41):

alexcrichton commented on issue #12568:

cc @badeend


Last updated: Feb 24 2026 at 04:36 UTC