Skip to content

(BugFix) Call WriteAll in p3 responseWriter - #12

Merged
asteurer merged 1 commit into
bytecodealliance:mainfrom
jfleitz:jfleitz/http-stream-fix
Sep 11, 2026
Merged

asteurer merged 1 commit into
bytecodealliance:mainfrom
jfleitz:jfleitz/http-stream-fix

Conversation

@jfleitz

@jfleitz jfleitz commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Description

When calling stream.write a single write is performed and a partial count can be returned to the caller, and then silently truncates the remaining.

This fix changes from calling Write to WriteAll, similar to how roundtripper_p3 works, and matches the other languages in wit-bindgen (c# and moonbit verified).

Testing

Tested with a local Load Test on a Kind cluster with wasmCloud. All messages processed without any lost information.

Signed-off-by: Jeremy Fleitz <jeremy@cosmonic.com>
@jfleitz
jfleitz marked this pull request as ready for review September 11, 2026 12:19
@asteurer
asteurer merged commit 2495ff7 into bytecodealliance:main Sep 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants