mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-26 18:31:34 +01:00
A queued stream held its full request body in host memory during the admission wait, because the body capture put the stream in flowing mode as soon as it attached its listeners. This broke the plan's rule that a queued stream holds no body bytes and adds no new buffer. Pause the stream in the same turn as the listener attach, and resume it only after the admission gate grants a slot. The peer's own flow-control window now stalls a queued stream at the wire instead of the JS layer buffering the body early. Co-authored-by: Paperclip <noreply@paperclip.ing>