Stream: wasi

Topic: wasi-sockets TCP implemention


view this post on Zulip Dave Bakker (badeend) (Sep 28 2023 at 14:56):

@Pat Hickey, @Dan Gohman I've been working on the wasmtime implementation of TCP sockets. My progress can be found here:
https://github.com/badeend/wasmtime/tree/tcp-error-checking
I also intend to add cross-platform compatibility fixes and implement a full testsuite for TCP sockets.

I noticed these tracking issues that were assigned two days ago that have overlap with what I've been doing:
https://github.com/bytecodealliance/wasmtime/issues/7013
https://github.com/bytecodealliance/wasmtime/issues/7014

Just wanted to make sure we're not doing duplicate work

A fast and secure runtime for WebAssembly. Contribute to badeend/wasmtime development by creating an account on GitHub.
A fast and secure runtime for WebAssembly. Contribute to bytecodealliance/wasmtime development by creating an account on GitHub.
A fast and secure runtime for WebAssembly. Contribute to bytecodealliance/wasmtime development by creating an account on GitHub.

view this post on Zulip Pat Hickey (Sep 28 2023 at 18:04):

Hi Dave, we put those issues up to track that work is still needed before we can call the implementation "done"

view this post on Zulip Pat Hickey (Sep 28 2023 at 18:04):

Dan and @Roman Volosatovs were going to discuss how to knock out the UDP side of things

view this post on Zulip Pat Hickey (Sep 28 2023 at 18:05):

but as far as the sockopts and test suite goes, we are super happy you are working on those!

view this post on Zulip Roman Volosatovs (Sep 28 2023 at 18:06):

Yes, it seems that I should wait for @Dan Gohman to finish resource PR first, right @Dan Gohman ?

view this post on Zulip Dan Gohman (Sep 28 2023 at 18:07):

Yeah, that's my suggestion, because it's a big PR that touches a lot of the files, and changes which traits we implement for stuff.

view this post on Zulip Pat Hickey (Sep 28 2023 at 18:07):

i am reviewing dan's resource PR right now

view this post on Zulip Dan Gohman (Sep 28 2023 at 18:07):

Alex posted a PR to my PR for the stdio thing, I'm reviewing that now

view this post on Zulip Dave Bakker (badeend) (Sep 28 2023 at 18:39):

Alright, great!

view this post on Zulip Dan Gohman (Sep 28 2023 at 19:14):

That PR has landed, the CI is now green, and Alex reviewed it, so we're super close now :-)

view this post on Zulip Dave Bakker (badeend) (Oct 01 2023 at 08:21):

The changes I mentioned in my initial comment are ready at: https://github.com/bytecodealliance/wasmtime/pull/7120

Allow accept() to return transient errors. The original provision was added to align with preview3 streams that may only fail once. However, after discussing with Dan Gohman, we came to the conclus...

Last updated: Nov 22 2024 at 16:03 UTC