lann opened issue #8714:
Currently, the
WasiCtxBuilder::socket_addr_check
callback 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_check
method?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_check
callback 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_check
method?cc @rylev
Last updated: Dec 23 2024 at 12:05 UTC