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

More sockopt Flexibility in the socket spec #6803

Closed
keithmattix opened this issue Aug 4, 2023 · 4 comments
Closed

More sockopt Flexibility in the socket spec #6803

keithmattix opened this issue Aug 4, 2023 · 4 comments

Comments

@keithmattix
Copy link

Feature

👋🏾 Hello! For the purposes of building something service mesh-esque using wasm, more flexible SOCK_OPT functionality in the socket interface would be extremely beneficial. The big one we use in mesh world is SO_ORIGINAL_DST, but there are others. How would I go about passing ~arbitrary socket options to the underlying host?

Benefit

Service mesh and other networking applications can have access to more complex socket functionality on the host.

Implementation

TBD

@keithmattix keithmattix changed the title More Socket Option Flexibility in the spec More sockopt Flexibility in the socket spec Aug 4, 2023
@pchickey
Copy link
Contributor

pchickey commented Aug 7, 2023

I'm not sure the context of this request. We have a rudimentary sockets implementation as part of WASI preview 1, but it doesn't have any spec written down nor any tests in our tree, and we aren't looking to spend any additional effort on that spec or implementation (and in fact may delete it - see #6370 - are you a user? if so, can you help contribute compatibility support?).

We are planning to implement https://github.com/WebAssembly/wasi-sockets very soon, which we feel is a much better spec for both users and implementors. Does that spec have the options you need? If not, lets please discuss it in that spec repo.

@keithmattix
Copy link
Author

Ah I wasn't aware of that other repo; I still don't see the options there, so I'll create an issue in that repo

@pchickey
Copy link
Contributor

pchickey commented Aug 7, 2023

Ok. Just to confirm, you're not using any existing sockets functionality in the wasi-common preview 1 implementation, so you won't be affected if it gets deleted without a direct replacement, and instead have to adopt wasi-sockets in preview 2 instead?

@keithmattix
Copy link
Author

Yes! I explained more in WebAssembly/wasi-sockets#45

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