httpwg / http-extensions

HTTP Extensions in progress
https://httpwg.org/http-extensions/
428 stars 141 forks source link

connect-tcp: require capsules #2855

Open DavidSchinazi opened 1 month ago

DavidSchinazi commented 1 month ago

As of draft-ietf-httpbis-connect-tcp-05, connect-tcp now optionally supports the capsule protocol. However, this optionality adds non-trivial complexity to implementations. As currently written, if a client wishes to use capsules, the server can reject the use of capsules, and now the client needs to cache that this server doesn't support them. However it's undefined for how long the client should cache this information, and within what scope. We could potentially figure out recommendations for all these questions, but fundamentally it might be best to instead make capsules mandatory for connect-tcp, like they are for connect-udp and connect-ip. That would simplify implementations and improve consistency.

tfpauly commented 3 weeks ago

Individually, I think it would be interesting to try out this direction — probably based on implementation experience for how easy it is to add.

On one hand, this makes connect-tcp less of a trivial drop-in. On the other, it opens up more possible use cases.