Stream: git-wasmtime

Topic: wasmtime / PR #8968 Immediately return StreamError::Close...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 17 2024 at 09:41):

badeend opened PR #8968 from badeend:immediate-stream-error-closed2 to bytecodealliance:main:

This saves the caller from having to perform one last poll+read sequence.

Before this change, it would first return an empty list of bytes, which is the wasi-io equivalent of EWOULDBLOCK.

<!--
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 (Jul 17 2024 at 09:41):

badeend requested wasmtime-core-reviewers for a review on PR #8968.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 17 2024 at 09:41):

badeend requested fitzgen for a review on PR #8968.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 17 2024 at 14:30):

alexcrichton commented on PR #8968:

Thanks! Would it be possible to add a test for this too?

view this post on Zulip Wasmtime GitHub notifications bot (Jul 17 2024 at 19:27):

badeend updated PR #8968.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 17 2024 at 19:38):

badeend commented on PR #8968:

Yes!

The test includes a std::thread::sleep. Under Linux this shouldn't be necessary as communication over loopback devices happens synchronously. But I've thrown it in anyway just in case Windows or MacOS works differently.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 17 2024 at 19:41):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 17 2024 at 19:56):

alexcrichton merged PR #8968.


Last updated: Dec 23 2024 at 12:05 UTC