Skip to content

fix: resolve #12475 — p3: Inconsistent behavior in sockets/udp send#13518

Open
chinhkrb113 wants to merge 1 commit into
bytecodealliance:mainfrom
chinhkrb113:improve/quality/add-regression-coverage-for-wrong-addres
Open

fix: resolve #12475 — p3: Inconsistent behavior in sockets/udp send#13518
chinhkrb113 wants to merge 1 commit into
bytecodealliance:mainfrom
chinhkrb113:improve/quality/add-regression-coverage-for-wrong-addres

Conversation

@chinhkrb113
Copy link
Copy Markdown

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.rs

Why

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 is Err(ErrorCode::InvalidArgument).

…ckets/udp send

Fixes bytecodealliance#12475

Signed-off-by: ChinhLee <76194645+chinhkrb113@users.noreply.github.com>
@chinhkrb113 chinhkrb113 requested a review from a team as a code owner May 31, 2026 09:57
@chinhkrb113 chinhkrb113 requested review from dicej and removed request for a team May 31, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

p3: Inconsistent behavior in sockets/udp send

1 participant