You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(bounded-body): lock the explicit maxBytes budget and fragmented reassembly
The maxBytes option was mutation-surviving: deleting it and always using the
64 KiB default left the whole suite green, because the only oversize test used
a 33 MiB body that exceeds both ceilings. Nothing proved that the one caller
the option exists for — the non-streaming upstream JSON read, at a 32 MiB
ceiling — can actually accept a response larger than an error body.
Four cases now pin it: a body between the default and the custom cap succeeds,
the exact cap succeeds, one byte past it fails closed with the prefix discarded,
and a 20k-chunk fragmented body under the cap reassembles byte-exactly (the
observable half of the geometric single-buffer accumulation). Driven red by
re-ignoring the option.
0 commit comments