Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export sockets #109

Open
SoniEx2 opened this issue Oct 30, 2024 · 4 comments
Open

Export sockets #109

SoniEx2 opened this issue Oct 30, 2024 · 4 comments

Comments

@SoniEx2
Copy link

SoniEx2 commented Oct 30, 2024

Instead of binding sockets, sockets should be exported, and the host should bind them. Sockets should be address-neutral, it's the application's responsibility to accept the addresses provided by the host. If the host decides to bind an exported socket to IPv6 or even UDS, then the guest has to just deal with it.

@badeend
Copy link
Collaborator

badeend commented Oct 31, 2024

I don't understand what you're proposing. Do you mind elaborating?

Keep in mind the goal of this proposal:

Toolchains must be able to provide a POSIX compatible interface on top of the functions introduced in this proposal.

@SoniEx2
Copy link
Author

SoniEx2 commented Oct 31, 2024

we're trying to come up with a way to force ipv6 migration.

personally we're doing things such as making ipv6-only server software and telling customers to use a SIIT-DC - especially on ipv4-only networks. but we can't help but notice wasm and wasi-sockets are a big deal on the server, and it's unfortunate that no effort has been made to push towards ipv6 migration in these specifications.

@badeend
Copy link
Collaborator

badeend commented Oct 31, 2024

it's unfortunate that no effort has been made to push towards ipv6 migration in these specifications.

Is there something new you want to put forward that hasn't already been discussed in https://bytecodealliance.zulipchat.com/#narrow/channel/219900-wasi/topic/ipv6-only.20.28464XLAT.2FSIIT-DC.29 ?

@SoniEx2
Copy link
Author

SoniEx2 commented Oct 31, 2024

there's the fact we gave up on ipv6-only OS for now, entirely due to signal handling. POSIX requires sockets to be signal-safe.

but we can come up with other approaches, like ipv6-only server software, trying to push new programming languages (including wasm) to go ipv6-only, and worst case we can still deploy Po4.

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

No branches or pull requests

2 participants