You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
This means the actual host call that performs the HTTP request must at some point block - and depending on how the runtime was started, it is possible for it to just hang right now, and the current implementation is put together without any thought into how other runtimes might need to use this.
@radu-matei I’d use the blocking reqwest client for now. However at least for Tokio you can tell if you are on a runtime with Handle::try_current() and then spawning on the runtime handle if it exists
Linker-defined functions cannot be asynchronous yet (see bytecodealliance/wasmtime#2434).
This means the actual host call that performs the HTTP request must at some point block - and depending on how the runtime was started, it is possible for it to just hang right now, and the current implementation is put together without any thought into how other runtimes might need to use this.
wasi-experimental-http/crates/wasi-experimental-http-wasmtime/src/lib.rs
Lines 86 to 92 in a94a758
cc @thomastaylor312
The text was updated successfully, but these errors were encountered: