adamrk opened PR #15042 from adamrk:abk/hyper-error-to-guest to bytecodealliance:main:
Ensure that an error encountered when sending a request or response body is delivered to the associated
transmitfuture when the body is coming from another host body which has been forwarded.Previously a guest which forwards a request or response would have no way to see if the request/response body was delivered without error. For example, if the original sender passed a body with incorrect content length or if it dropped the connection before completion, the guest would still receive
Ok(())on the transmission future.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.mdPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
adamrk requested rvolosatovs for a review on PR #15042.
adamrk removed the review request for wasmtime-wasi-reviewers from PR #15042.
adamrk requested wasmtime-wasi-reviewers for a review on PR #15042.
adamrk removed the review request for wasmtime-core-reviewers from PR #15042.
adamrk requested cfallin for a review on PR #15042.
adamrk requested wasmtime-core-reviewers for a review on PR #15042.
adamrk updated PR #15042.
adamrk edited PR #15042:
Ensure that an error encountered when sending a request or response body is delivered to the associated
transmitfuture when the body is coming from another host body which has been forwarded.Previously a guest which forwards a request or response would have no way to see if the request/response body was delivered without error. For example, if the original sender passed a body with incorrect content length or if it dropped the connection before completion, the guest would still receive
Ok(())on the transmission future.Depends on https://github.com/bytecodealliance/wasmtime/pull/15041 for testing.
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.mdPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
adamrk updated PR #15042.
adamrk updated PR #15042.
cfallin requested pchickey for a review on PR #15042.
cfallin commented on PR #15042:
Tagging in @pchickey to review; I'm not familiar enough with the code here to sign off (though it looks plausible to me).
xia-chao commented on PR #15042:
not sure if this is related to #15111, but dropping a forwarded body early still
gives the guest Ok from transmit. expected?
adamrk commented on PR #15042:
I don't really think this is quite the same as the issues in https://github.com/bytecodealliance/wasmtime/issues/15111. Here we're just ensuring that when the request produces an error, a guest which forwarded that request sees it.
:memo: rvolosatovs submitted PR review:
sorry for the delay on the review.
Could we keep the
BodyWithContentLengthwrapper and instead add the error report wrapper next to it?We'd need to move the
error_txout ofBodyWithContentLength.
adamrk updated PR #15042.
adamrk commented on PR #15042:
Could we keep the BodyWithContentLength wrapper and instead add the error report wrapper next to it?
Yep, changed it to have a separate body type for the error which we wrap around
BodyWithContentLength.
adamrk removed the review request for wasmtime-default-reviewers from PR #15042.
adamrk requested alexcrichton for a review on PR #15042.
adamrk requested wasmtime-default-reviewers for a review on PR #15042.
adamrk updated PR #15042.
adamrk requested rvolosatovs for a review on PR #15042.
github-actions[bot] added the label wasmtime:docs on PR #15042.
:memo: rvolosatovs submitted PR review:
Thanks for the update! The implementation looks good to me, however the tests are failing to compile in CI and it looks like quite a few unintentionally-committed files were added in the latest revision
adamrk updated PR #15042.
adamrk commented on PR #15042:
My mistake. Looks like it should be good now.
:thumbs_up: rvolosatovs submitted PR review:
apart from the compilation failure, LGTM
:speech_balloon: rvolosatovs created PR review comment:
this line fails to compile
Last updated: Nov 19 2026 at 20:05 UTC