Skip to content

sockets: Add tests for tcp/{connect, listen, send,receive}#208

Merged
wingo merged 11 commits intoWebAssembly:mainfrom
saulecabrera:sockets-send-receive-tests
Feb 12, 2026
Merged

sockets: Add tests for tcp/{connect, listen, send,receive}#208
wingo merged 11 commits intoWebAssembly:mainfrom
saulecabrera:sockets-send-receive-tests

Conversation

@saulecabrera
Copy link
Copy Markdown
Collaborator

@saulecabrera saulecabrera commented Jan 22, 2026

See individual commits for details.

@saulecabrera saulecabrera changed the title Add tests for tcp/{send,receive} sockets: Add tests for tcp/{send,receive} Jan 22, 2026
@saulecabrera saulecabrera force-pushed the sockets-send-receive-tests branch from 9f54653 to fbbeae3 Compare January 22, 2026 19:32
@saulecabrera saulecabrera changed the title sockets: Add tests for tcp/{send,receive} sockets: Add tests for tcp/{connect, listen, send,receive} Jan 22, 2026
@saulecabrera
Copy link
Copy Markdown
Collaborator Author

cc @wingo I've decided to group all the other PRs into this one, to make easier to review (and update), every change is clearly separated into its own commit anyway. So I'll go ahead and close the others.

Comment thread tests/rust/wasm32-wasip3/src/bin/sockets-tcp-listen.rs Outdated
This commit covers the `connect` functionality. The following cases:

* `timeout`
* `connection-{reset, aborted, unreachable}`

are tricky to similuate without the networking counterpart in the
host; I'm intentionally leaving these out from this patch and will be
included in follow-ups.

This commit also introduces a shared `sockets` module, to ease the
development of other sockets-related tests
https://github.com/WebAssembly/wasi-testsuite/pull/205/changes will be
rebased on top of this chnage once it lands.
@saulecabrera saulecabrera force-pushed the sockets-send-receive-tests branch from 2d40d59 to b54723d Compare February 10, 2026 20:09
@saulecabrera saulecabrera force-pushed the sockets-send-receive-tests branch from b82467f to 9d55ba7 Compare February 10, 2026 21:18
Comment thread tests/rust/wasm32-wasip3/src/bin/sockets-tcp-connect.rs
Comment thread tests/rust/wasm32-wasip3/src/bin/sockets-tcp-connect.rs Outdated
Comment thread tests/rust/wasm32-wasip3/src/bin/sockets-tcp-connect.rs Outdated
Copy link
Copy Markdown
Collaborator

@wingo wingo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, please merge!

@saulecabrera
Copy link
Copy Markdown
Collaborator Author

please merge

I don't have enough permissions, so maybe you could help me here!

@wingo wingo merged commit 25b3076 into WebAssembly:main Feb 12, 2026
18 checks passed
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.

2 participants