Skip to content

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

Merged
Arshia001 merged 2 commits intomainfrom
fix/send-tcp-on-open-socket
Apr 20, 2026
Merged

fix(wasix): Handle sendto() on connected TCP sockets#6455
Arshia001 merged 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

Fixes #6449

@artemyarulin artemyarulin force-pushed the fix/send-tcp-on-open-socket branch from 6f1c8e0 to b42c70c Compare April 12, 2026 20:26
@artemyarulin artemyarulin requested a review from Arshia001 April 16, 2026 06:09
@Arshia001 Arshia001 merged commit 6bed5cd into main Apr 20, 2026
77 checks passed
@Arshia001 Arshia001 deleted the fix/send-tcp-on-open-socket branch April 20, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sendto() on connected TCP sockets returns ENOTSUP under Wasmer

2 participants