xia-chao opened PR #15213 from xia-chao:fix/blocking-write-max-io to bytecodealliance:main:
https://docs.rs/wasmtime-wasi/latest/wasmtime_wasi/struct.WasiCtxBuilder.html#method.max_io_size
blocking_write_and_flush writes the whole buffer at once. split it into max_io_size chunks so blocking writes match this documented limit.
xia-chao removed the review request for wasmtime-wasi-reviewers from PR #15213.
xia-chao requested dicej for a review on PR #15213.
xia-chao requested wasmtime-wasi-reviewers for a review on PR #15213.
xia-chao edited PR #15213:
https://docs.rs/wasmtime-wasi/latest/wasmtime_wasi/struct.WasiCtxBuilder.html#method.max_io_size
align with this; the current implementation doesn't.
github-actions[bot] added the label wasi on PR #15213.
alexcrichton commented on PR #15213:
The limitation of
max_io_sizeis pretty broadly placing a limit on the size of the allocation made when copying between the guest and the host. Here, though, this is already host-allocated bytes so there's no real purpose in limiting it. Is there a missing clamp before this method is called though?
:cross_mark: xia-chao closed without merge PR #15213.
Last updated: Nov 19 2026 at 20:05 UTC