Stream: git-wasmtime

Topic: wasmtime / PR #11981 fix a couple of partial read/write bugs


view this post on Zulip Wasmtime GitHub notifications bot (Nov 04 2025 at 21:48):

dicej opened PR #11981 from dicej:partial-read-write-fixes to bytecodealliance:main:

This fixes and adds test coverage for a couple of bugs involving component model streams:

delay returning Dropped until producer buffer drained

If the StreamProducer calls Destination::set_buffer, we need to make sure all the items in that buffer have been delivered to the receiver (or the receiver closes its end) before telling it the write end has been dropped.

reset read/write state back to Open on event delivery

If one end of a stream does a partial read or write, we leave the other end in a GuestReady state, allowing further reads or writes to proceed until the buffer has been drained or filled, respectively. However, once we've delivered the event regarding the partial operation, we need to set the state back to Open, since we'll have released the buffer back to the guest at that point.

<!--
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 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 (Nov 04 2025 at 21:48):

dicej requested fitzgen for a review on PR #11981.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 04 2025 at 21:48):

dicej requested wasmtime-core-reviewers for a review on PR #11981.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 04 2025 at 21:48):

dicej requested alexcrichton for a review on PR #11981.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 04 2025 at 22:37):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 04 2025 at 23:52):

dicej merged PR #11981.


Last updated: Dec 06 2025 at 07:03 UTC