karthik-phl opened PR #12904 from karthik-phl:fix_issue_12903 to bytecodealliance:main:
- Fixes #12903 and tests to validate
- This fix is necessary because zero-length data frames are valid per the http_body::Body trait contract (which does not forbid them) and RFC 9113 §6.1 (which explicitly permits zero-length DATA frames), so
HostBodyStreamProducermust tolerate them as a consumer ofpoll_frame. Similarly, a zero-capacity destination is a valid call condition. In both cases, returningStreamResult::Completedwithout producing any items violates the contract enforced infutures_and_streams.rs:2536–2544and causes an immediate trap.
karthik-phl requested wasmtime-wasi-reviewers for a review on PR #12904.
karthik-phl updated PR #12904.
alexcrichton requested dicej for a review on PR #12904.
dicej submitted PR review:
Thanks!
dicej added PR #12904 Fix for #12903 to the merge queue.
dicej merged PR #12904.
dicej removed PR #12904 Fix for #12903 from the merge queue.
Last updated: Apr 13 2026 at 00:25 UTC