jrandolf opened issue #14857:
When using named imports with
wasmtime-wasi(add_named_to_linker), the per-name contexts have to share the defaultResourceTable, but nothing says so, andWasiHttpNamedView's docs suggest the opposite ("need not be unique").Named implementations push resources into the named view's table, while the plain interfaces that consume them (e.g.
wasi:io/streamsin p2) read the default table. With a table per id, reading a labelledwasi:cli/stdinreturned the default context's input in a test, and p3 http fails withfailed to delete request from table.At minimum this needs documenting on
WasiNamedView/WasiHttpNamedView. An API that returns the per-id context and the shared table separately would make it impossible to get wrong.
alexcrichton added the wasm-proposal:component-model-implements label to Issue #14857.
alexcrichton closed issue #14857:
When using named imports with
wasmtime-wasi(add_named_to_linker), the per-name contexts have to share the defaultResourceTable, but nothing says so, andWasiHttpNamedView's docs suggest the opposite ("need not be unique").Named implementations push resources into the named view's table, while the plain interfaces that consume them (e.g.
wasi:io/streamsin p2) read the default table. With a table per id, reading a labelledwasi:cli/stdinreturned the default context's input in a test, and p3 http fails withfailed to delete request from table.At minimum this needs documenting on
WasiNamedView/WasiHttpNamedView. An API that returns the per-id context and the shared table separately would make it impossible to get wrong.
Last updated: Oct 31 2026 at 23:03 UTC