Multiplier applied to the per-response cap to derive the cumulative
byte budget for text/event-stream responses in a single call.
SSE needs two numbers, not one. The per-event cap is the memory bound —
a consumer buffers one event frame before dispatching it, so no single
event may exceed maxResponseBytes. The cumulative budget is the
liveness bound — it stops a peer from holding a connection open and
streaming forever in well-formed small frames.
Deliberately small. Every multiple is a multiple a hostile peer can claim
for free by putting Content-Type: text/event-stream on an ordinary reply
and inserting a blank line every kilobyte, so the gap between the headline
cap and the worst case an adopter can actually suffer should stay narrow.
2 leaves room for a normal tool call (many small status frames plus one
result frame) without turning the advertised 4 MiB into 32 MiB.
Multiplier applied to the per-response cap to derive the cumulative byte budget for
text/event-streamresponses in a single call.SSE needs two numbers, not one. The per-event cap is the memory bound — a consumer buffers one event frame before dispatching it, so no single event may exceed
maxResponseBytes. The cumulative budget is the liveness bound — it stops a peer from holding a connection open and streaming forever in well-formed small frames.Deliberately small. Every multiple is a multiple a hostile peer can claim for free by putting
Content-Type: text/event-streamon an ordinary reply and inserting a blank line every kilobyte, so the gap between the headline cap and the worst case an adopter can actually suffer should stay narrow.2leaves room for a normal tool call (many small status frames plus one result frame) without turning the advertised 4 MiB into 32 MiB.