lann opened issue #8714:
Currently, the
WasiCtxBuilder::socket_addr_checkcallback is synchronous. While this is often reasonable, I'm working on some code that wants to resolve inputs to this check asynchronously, which requires either delaying construction of theWasiCtx(which delays execution of the guest) or blocking the thread within the check.Could this allow async callbacks? Either updating the existing signature (presumably breaking existing code, but with a trivial fix) or adding a new e.g.
socket_addr_async_checkmethod?cc @rylev
lann commented on issue #8714:
From a brief out-of-band discussion with @alexcrichton it sounds like updating the existing builder method should be fine, so I'll put together a PR.
alexcrichton closed issue #8714:
Currently, the
WasiCtxBuilder::socket_addr_checkcallback is synchronous. While this is often reasonable, I'm working on some code that wants to resolve inputs to this check asynchronously, which requires either delaying construction of theWasiCtx(which delays execution of the guest) or blocking the thread within the check.Could this allow async callbacks? Either updating the existing signature (presumably breaking existing code, but with a trivial fix) or adding a new e.g.
socket_addr_async_checkmethod?cc @rylev
Last updated: Dec 13 2025 at 21:03 UTC