xia-chao opened PR #15142 from xia-chao:fix/wasi-http-child-headers to bytecodealliance:main:
#14564 fixed the incoming-request side: its headers are a child resource, so dropping the parent while headers are alive traps.
outgoing-request.headersis a child too, and it doesn't trap today.This registers it and detaches the relation in
outgoing-handler.handle, which transfers ownership.
xia-chao removed the review request for wasmtime-wasi-reviewers from PR #15142.
xia-chao requested pchickey for a review on PR #15142.
xia-chao requested wasmtime-wasi-reviewers for a review on PR #15142.
xia-chao requested wasmtime-core-reviewers for a review on PR #15142.
pchickey commented on PR #15142:
My recollection is that we deliberately relaxed the child restriction because it was stricter than required and no longer provided us with the resource consumption guarantees it was designed to provide. As the person who championed the entire idea of child resources throughout the spec, I believe it was a mistake and we should leave it behind. We are no longer making revisions to the WASI 0.2 wits, but my position is that we can relax these restrictions even though it is contrary to the spec, since the restrictions do not serve users nor implementers.
Could you please open a PR to revert https://github.com/bytecodealliance/wasmtime/pull/14564? cc @rvolosatovs who reviewed that, I don't think I ever had a real discussion about the child restrictions relaxing with Roman and we didn't document it anywhere, so I guess its time to write it down.
pchickey edited a comment on PR #15142:
My recollection is that we deliberately relaxed the child restriction because it was stricter than required and no longer provided us with the resource consumption guarantees it was designed to provide. As the person who championed the entire idea of child resources throughout the spec, I believe it was a mistake and we should leave it behind. We are no longer making revisions to the WASI 0.2 wits, but my position is that we can relax these restrictions even though it is contrary to the spec, since the restrictions neither serve users nor implementers.
Could you please open a PR to revert https://github.com/bytecodealliance/wasmtime/pull/14564? cc @rvolosatovs who reviewed that, I don't think I ever had a real discussion about the child restrictions relaxing with Roman and we didn't document it anywhere, so I guess its time to write it down.
xia-chao commented on PR #15142:
#14564 didn't change much: it just made dropping an
incoming-requestwith live
headers trap.
Reverting it only removes that trap again; outgoing headers don't trap, and body
streams still do.
The real issue is the inconsistent enforcement: some child relations trap,
others don't. Which ones should stay enforced?cc @rvolosatovs
:cross_mark: xia-chao closed without merge PR #15142.
xia-chao commented on PR #15142:
Archive it; deal with it later.
Last updated: Nov 19 2026 at 20:05 UTC