xia-chao opened PR #14448 from xia-chao:reject-zero-http-outgoing-body-options to bytecodealliance:main:
Both options must be non-zero at the implementation level. Passing zero used to misbehave:
buffer-chunks=0panicked a worker underserveand the whole process underrun, andchunk-size=0returned an empty body with a 200. They are nowOption<NonZeroUsize>, likegc_zeal_alloc_counter, so valid configurations are unaffected.
xia-chao requested wasmtime-core-reviewers for a review on PR #14448.
xia-chao requested cfallin for a review on PR #14448.
xia-chao edited PR #14448:
Both options must be non-zero at the implementation level. Passing zero used to misbehave:
buffer-chunks=0panicked a worker underserveand the whole process underrun, andchunk-size=0returned an empty body with a 200.
xia-chao edited PR #14448:
Both options must be non-zero at the implementation level. Passing zero used to misbehave:
buffer-chunks=0panicked a worker underserveand the whole process underrun, andchunk-size=0returned an empty body with a 200.
For more information, please refer to diff.
:speech_balloon: cfallin created PR review comment:
We can probably rely just on the cli-test to assert the behavior here -- we don't have unit tests for any other option-specific semantic validation here and it seems sort of repetitive.
:thumbs_up: cfallin submitted PR review:
Thanks! Just one nit below on testing, otherwise happy to. merge.
:thumbs_up: cfallin submitted PR review:
Thanks! Just one nit below on testing, otherwise happy to merge.
xia-chao updated PR #14448.
xia-chao commented on PR #14448:
Thank you, my previous consideration was to do more to ensure safety, but integration testing alone can maintain this behavior
:thumbs_up: cfallin submitted PR review.
cfallin added PR #14448 cli: reject zero for the --http-outgoing-body-* options to the merge queue.
:check: cfallin merged PR #14448.
cfallin removed PR #14448 cli: reject zero for the --http-outgoing-body-* options from the merge queue.
Last updated: Oct 11 2026 at 04:10 UTC