Stream: git-wasmtime

Topic: wasmtime / PR #15042 wasi-http: Send error to guest from ...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 28 2026 at 12:58):

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 transmit future 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:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.md

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Oct 28 2026 at 12:58):

adamrk requested rvolosatovs for a review on PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 28 2026 at 12:58):

adamrk removed the review request for wasmtime-wasi-reviewers from PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 28 2026 at 12:58):

adamrk requested wasmtime-wasi-reviewers for a review on PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 28 2026 at 12:58):

adamrk removed the review request for wasmtime-core-reviewers from PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 28 2026 at 12:58):

adamrk requested cfallin for a review on PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 28 2026 at 12:58):

adamrk requested wasmtime-core-reviewers for a review on PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 29 2026 at 12:57):

adamrk updated PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 29 2026 at 12:58):

adamrk edited PR #15042:

Ensure that an error encountered when sending a request or response body is delivered to the associated transmit future 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:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.md

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Oct 29 2026 at 19:19):

adamrk updated PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 29 2026 at 19:31):

adamrk updated PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2026 at 20:40):

cfallin requested pchickey for a review on PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2026 at 20:41):

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).

view this post on Zulip Wasmtime GitHub notifications bot (Nov 07 2026 at 10:39):

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?

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 18:53):

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.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 12 2026 at 17:09):

:memo: rvolosatovs submitted PR review:

sorry for the delay on the review.

Could we keep the BodyWithContentLength wrapper and instead add the error report wrapper next to it?

We'd need to move the error_tx out of BodyWithContentLength.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 20:12):

adamrk updated PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 20:15):

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.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 20:17):

adamrk removed the review request for wasmtime-default-reviewers from PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 20:17):

adamrk requested alexcrichton for a review on PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 20:17):

adamrk requested wasmtime-default-reviewers for a review on PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 20:17):

adamrk updated PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 20:17):

adamrk requested rvolosatovs for a review on PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 22:44):

github-actions[bot] added the label wasmtime:docs on PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 14 2026 at 13:19):

: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

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2026 at 15:26):

adamrk updated PR #15042.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2026 at 15:27):

adamrk commented on PR #15042:

My mistake. Looks like it should be good now.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 18 2026 at 14:22):

:thumbs_up: rvolosatovs submitted PR review:

apart from the compilation failure, LGTM

view this post on Zulip Wasmtime GitHub notifications bot (Nov 18 2026 at 14:22):

:speech_balloon: rvolosatovs created PR review comment:

this line fails to compile


Last updated: Nov 19 2026 at 20:05 UTC