Skip to content

fix(wasix): Handle sendto() on connected TCP sockets#6455

Open
artemyarulin wants to merge 2 commits intomainfrom
fix/send-tcp-on-open-socket
Open

fix(wasix): Handle sendto() on connected TCP sockets#6455
artemyarulin wants to merge 2 commits intomainfrom
fix/send-tcp-on-open-socket

Conversation

@artemyarulin
Copy link
Copy Markdown
Contributor

@artemyarulin artemyarulin commented Apr 12, 2026

Previously, sendto() on a connected TCP socket returned ENOTSUP because the send_to() path in lib/wasix/src/net/socket.rs only handled ICMP and UDP sockets. This change makes the TCP case behave like send() and ignore the destination address, which matches POSIX behavior for connected stream sockets.

Along the way I've added all the POSIX tests for send_to syscall

@artemyarulin artemyarulin force-pushed the fix/send-tcp-on-open-socket branch from 6f1c8e0 to b42c70c Compare April 12, 2026 20:26
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.

1 participant