Stream: git-wasmtime

Topic: wasmtime / issue #6803 More sockopt Flexibility in the so...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 04 2023 at 15:51):

keithmattix edited issue #6803:

Feature

:wave:🏾 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

view this post on Zulip Wasmtime GitHub notifications bot (Aug 07 2023 at 21:56):

pchickey commented on issue #6803:

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 https://github.com/bytecodealliance/wasmtime/issues/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.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 07 2023 at 21:56):

pchickey edited a comment on issue #6803:

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 https://github.com/bytecodealliance/wasmtime/issues/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.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 07 2023 at 22:24):

keithmattix commented on issue #6803:

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

view this post on Zulip Wasmtime GitHub notifications bot (Aug 07 2023 at 22:24):

keithmattix closed issue #6803:

Feature

:wave:🏾 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

view this post on Zulip Wasmtime GitHub notifications bot (Aug 07 2023 at 23:04):

pchickey commented on issue #6803:

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?

view this post on Zulip Wasmtime GitHub notifications bot (Aug 08 2023 at 15:42):

keithmattix commented on issue #6803:

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


Last updated: Oct 23 2024 at 20:03 UTC