chinhkrb113 opened PR #13518 from chinhkrb113:improve/quality/add-regression-coverage-for-wrong-addres to bytecodealliance:main:
Summary
There should be a test program exercising the scenario from the issue so the cross-platform behavior is locked in. The test creates a UDP socket of one family, then attempts to send to a localhost address of the opposite family and asserts the result is
Err(ErrorCode::InvalidArgument)Fixes #12475
Changes
crates/test-programs/src/bin/p3_sockets_udp_states.rsWhy
crates/test-programs/src/bin/p3_sockets_udp_states.rs: There should be a test program exercising the scenario from the issue so the cross-platform behavior is locked in. The test creates a UDP socket of one family, then attempts to send to a localhost address of the opposite family and asserts the result isErr(ErrorCode::InvalidArgument).
chinhkrb113 requested dicej for a review on PR #13518.
chinhkrb113 requested wasmtime-core-reviewers for a review on PR #13518.
Thanks for the test. Looks like we'll need to update the implementation to get CI passing. Are you up for doing that, or would you prefer someone else does it?
fitzgen added the label wasi on PR #13518.
badeend commented on PR #13518:
@dicej This can be closed. The test already exists:
:cross_mark: alexcrichton closed without merge PR #13518.
Last updated: Jul 29 2026 at 05:03 UTC