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

[WASI] finalizer + HTTP client child resources #107096

Merged

Conversation

pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Aug 28, 2024

Related bytecodealliance/wit-bindgen#1039

- rewrite HTTP to respect child resources
@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-GC-mono os-wasi Related to WASI variant of arch-wasm labels Aug 28, 2024
@pavelsavara pavelsavara added this to the 10.0.0 milestone Aug 28, 2024
@pavelsavara pavelsavara self-assigned this Aug 28, 2024
#if defined(HOST_WASI)
// TODO: Schedule the background job on WASI. Threads aren't yet supported in this build.
#if defined(HOST_WASI) && defined(DISABLE_THREADS)
mono_runtime_do_background_work ();
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not confident what are problems of doing it here synchronously and inline, for single-threaded runtime. Will test and see what happens.

pavelsavara added a commit to pavelsavara/runtimelab that referenced this pull request Aug 28, 2024
Copy link
Contributor

@dicej dicej left a comment

Choose a reason for hiding this comment

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

LGTM overall. Thanks for doing this!

Just a few comments and questions inline.

@pavelsavara
Copy link
Member Author

I expect this is still early version of the code. Until we have better test coverage, with our existing test suite.
I assume we have gaps in:

  • streaming + cancelation + disposal behavior
  • tail headers
  • various features which actually don't have to be PNSE on WASI
  • eventually rewrite for preview3 promises

@pavelsavara pavelsavara requested a review from maraf August 29, 2024 10:52
@pavelsavara pavelsavara marked this pull request as ready for review August 29, 2024 10:53
Copy link
Member

@ilonatommy ilonatommy left a comment

Choose a reason for hiding this comment

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

Looks good

jtschuster pushed a commit to jtschuster/runtime that referenced this pull request Sep 17, 2024
Co-authored-by: Joel Dice <joel.dice@fermyon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-GC-mono os-wasi Related to WASI variant of arch-wasm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[WASI] implement finalizer
3 participants