Re: WGLC for draft-ietf-httpbis-connect-tcp



On Mar 7, 2024, at 12:18 PM, Lucas Pardue <lucaspardue.24.7@gmail.com> wrote:
Hey,

On Thu, 7 Mar 2024, 17:00 Ben Schwartz, <bemasc@meta.com<mailto:bemasc@meta.com>> wrote:
...
As an example of the complexity, note that all uses of the Capsule Protocol to date are "atomic": each capsule is expected to be buffered and processed as a whole.  In this thread we've heard proposals to introduce new capsule types that the recipient must process in "streaming" fashion.  This mix of atomic and streaming capsules is a new wrinkle in the Capsule Protocol.

FWIW the capsule protocol spec highlights this and normatively recommends streaming https://datatracker.ietf.org/doc/html/rfc9297#section-3.2-12<https://datatracker.ietf.org/doc/html/rfc9297#section-3.2-12>.

I think that’s slightly different.  Implementations SHOULDN’T buffer the capsule “in the data stream”, but nothing there recommends against buffering the message outside of the stream before processing it.

By my reading, the “infinite capsule trick” proposed in this thread would actually be malformed: https://datatracker.ietf.org/doc/html/rfc9297#section-3.3-3.  The sender is supposed to know the exact length of each capsule before it is sent, so capsules cannot really be streamed.

—Ben

Received on Thursday, 7 March 2024 17:27:19 UTC