alexcrichton requested dicej for a review on PR #13210.
alexcrichton requested wasmtime-core-reviewers for a review on PR #13210.
alexcrichton opened PR #13210 from alexcrichton:fix-guest-write to bytecodealliance:main:
This commit fixes a mistake where if a synchronous call to
future.writewas blocked, then it woke up because the readable end was dropped, the future would then erroneously not be marked "done" which could allow future operations to proceed. The fix here is to adjust amatches!to handle both futures and streams.An associated
*.wasttest is expanded to mix in synchronous calls as well as asynchronous calls in various places. The test is refactored a bit to have various helpers in various places.Finally some minor updates to error messages are made which avoids saying "stream" when the error shows up for both futures and streams.
<!--
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 ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton updated PR #13210.
:thumbs_up: dicej submitted PR review.
alexcrichton added PR #13210 Fix some minor mistakes/typos in guest_write to the merge queue
:check: alexcrichton merged PR #13210.
alexcrichton removed PR #13210 Fix some minor mistakes/typos in guest_write from the merge queue
Last updated: May 03 2026 at 22:13 UTC