Skip to content

wasi implementations: use rc-2024-01-16 for sockets, cli, http#7781

Merged
pchickey merged 10 commits into
mainfrom
pch/wasi-rc-2024-01-16
Jan 17, 2024
Merged

wasi implementations: use rc-2024-01-16 for sockets, cli, http#7781
pchickey merged 10 commits into
mainfrom
pch/wasi-rc-2024-01-16

Conversation

@pchickey
Copy link
Copy Markdown
Contributor

WebAssembly/wasi-sockets#93 eliminates the ipv6-only sockopt getter and setter, and the ability for cross-stack ipv6 to ipv4 connections to take place, so these are bubbled out through the test suites.

* a v6_client.blocking_connect(net, v4_listener) will always fail
  with INVAL right away.
* eliminate the paths where a v6 client is allowed to connect to v4.
* eliminate the udp_dual_stack_conversation from udp_sample_application
@pchickey pchickey requested a review from a team as a code owner January 16, 2024 22:58
@pchickey pchickey requested review from fitzgen and removed request for a team January 16, 2024 22:58
Copy link
Copy Markdown
Member

@badeend badeend left a comment

Choose a reason for hiding this comment

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

I have one remark. Other than that: LGMT!

// Connecting to an IPv4 address on an IPv6 socket should fail:
assert!(matches!(
v6_client.blocking_connect(net, v6_listener_addr),
v6_client.blocking_connect(net, v4_listener_addr),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should attempt to connect to v6_listener_addr which was a IPv4-mapped-IPv6 address. The way you rewrote it, this call doesn't actually test the change.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Got it - thanks!


// Connecting to an IPv4 address on an IPv6 socket should fail:
assert!(matches!(
v6_client.stream(Some(v4_server_addr)),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

See previous comment

@pchickey pchickey enabled auto-merge January 16, 2024 23:36
@pchickey pchickey added this pull request to the merge queue Jan 16, 2024
Merged via the queue into main with commit 10ab511 Jan 17, 2024
@pchickey pchickey deleted the pch/wasi-rc-2024-01-16 branch January 17, 2024 00:23
pchickey pushed a commit that referenced this pull request Jan 17, 2024
* wasi: pull in contents of wasi-sockets, wasi-http, and wasi-cli 0.2.0-rc-2024-01-16

* command-extended and test worlds: use rc-2024-01-16

* sockets implementation: v6only is now mandatory

* adapter: cli imports and exports are from rc-2024-01-16 now

* eliminate ipv6-only methods and tests

* a v6_client.blocking_connect(net, v4_listener) will always fail
  with INVAL right away.
* eliminate the paths where a v6 client is allowed to connect to v4.
* eliminate the udp_dual_stack_conversation from udp_sample_application

* component-basic: update wasi:cli version

* wasi-http: sync wit directory

* wasi-http: fix import version

* code review from dave

* test both ipv4 address on v6 socket, and ipv6-mapped-ipv4 on v6 socket, both fail
alexcrichton pushed a commit that referenced this pull request Jan 17, 2024
#7785)

* wasi: pull in contents of wasi-sockets, wasi-http, and wasi-cli 0.2.0-rc-2024-01-16

* command-extended and test worlds: use rc-2024-01-16

* sockets implementation: v6only is now mandatory

* adapter: cli imports and exports are from rc-2024-01-16 now

* eliminate ipv6-only methods and tests

* a v6_client.blocking_connect(net, v4_listener) will always fail
  with INVAL right away.
* eliminate the paths where a v6 client is allowed to connect to v4.
* eliminate the udp_dual_stack_conversation from udp_sample_application

* component-basic: update wasi:cli version

* wasi-http: sync wit directory

* wasi-http: fix import version

* code review from dave

* test both ipv4 address on v6 socket, and ipv6-mapped-ipv4 on v6 socket, both fail
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.

3 participants