alexcrichton opened PR #14553 from alexcrichton:fix-bail-bug-1 to bytecodealliance:main:
This commit fixes a
bail_bug!being hit when a guest partially reads data from a stream, doesn't receive the event on the writer side, and then the host tries to read the data itself on the stream. The fix here is to delay the host's read until the guest writer-half decides to do something else with the stream as opposed to immediately trying to read it which might end up needing to merge events which is not implemented.<!--
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
-->
alexcrichton requested pchickey for a review on PR #14553.
alexcrichton requested wasmtime-core-reviewers for a review on PR #14553.
:thumbs_up: pchickey submitted PR review.
alexcrichton has enabled auto merge for PR #14553.
alexcrichton added PR #14553 Fix reading a stream on the host after a partial guest read to the merge queue.
:check: alexcrichton merged PR #14553.
alexcrichton removed PR #14553 Fix reading a stream on the host after a partial guest read from the merge queue.
Last updated: Oct 11 2026 at 04:10 UTC