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
{{ message }}
Repository navigation
p3: Inconsistent behavior in sockets/udp send #12475
Should this perhaps be a case where the spec is changed to allow more error codes for this situation? I never quite know how to best thread the needle but translating a native EAFNOSUPPORT to not-supported here doesn't seem entirely unreasonable to me
I believe on macOS an ipv6 socket can actually connect to ipv4 addresses (and by default listening on an ipv6 socket will also listen on ipv4) The IPV6_V6ONLY option disables this behavior.
I believe on macOS an ipv6 socket can actually connect to ipv4 addresses (and by default listening on an ipv6 socket will also listen on ipv4) The IPV6_V6ONLY option disables this behavior.
/// Similar to `socket(AF_INET or AF_INET6, SOCK_STREAM, IPPROTO_TCP)`
/// in POSIX. On IPv6 sockets, IPV6_V6ONLY is enabled by default and
/// can't be configured otherwise.
FWIW, the IPV6_V6ONLY requirement was already part of the spec before that. That PR only reformats the documentation.
The reason why the OP's issue surfaces now is for the same reason as #12568; the validation was missing in the P3 implementation. And the validation was hiding the fact that we didn't set IPV6_V6ONLY correctly.
Activity
saulecabrera commentedon Jan 29, 2026
For completeness, this is the error on Ubuntu:
alexcrichton commentedon Jan 30, 2026
Should this perhaps be a case where the spec is changed to allow more error codes for this situation? I never quite know how to best thread the needle but translating a native
EAFNOSUPPORTtonot-supportedhere doesn't seem entirely unreasonable to mebjorn3 commentedon Jan 30, 2026
I believe on macOS an ipv6 socket can actually connect to ipv4 addresses (and by default listening on an ipv6 socket will also listen on ipv4) The IPV6_V6ONLY option disables this behavior.
fix: resolve bytecodealliance#12475 — p3: Inconsistent behavior in so…
rvolosatovs commentedon Jun 4, 2026
IPV6_V6ONLY behavior is actually the spec requirement: https://github.com/WebAssembly/WASI/blob/a1fc383d01eabaf3fac01de03c0ab1a01bfdd099/proposals/sockets/wit-0.3.0-draft/types.wit#L178-L180
bjorn3 commentedon Jun 4, 2026
That was added a month after my comment in WebAssembly/WASI#884.
Set `IPV6_V6ONLY` for UDP sockets (bytecodealliance#13596)
Set `IPV6_V6ONLY` for UDP sockets (bytecodealliance#13596)
badeend commentedon Jun 13, 2026
FWIW, the
IPV6_V6ONLYrequirement was already part of the spec before that. That PR only reformats the documentation.The reason why the OP's issue surfaces now is for the same reason as #12568; the validation was missing in the P3 implementation. And the validation was hiding the fact that we didn't set
IPV6_V6ONLYcorrectly.Update SMT-based ISLE verifier (bytecodealliance#13550)