Proposal: a new WRAP UP capsule

Hi HTTP enthusiasts,

Over in MASQUE land, as we're deploying our two-hop proxies, we decided we
needed to put a cap on how many bytes we'd allow per token-authenticated
connect-udp tunnel. Enforcing a hard limit is easy, but the issue is that
if the proxy aborts the tunnel halfway through, the web browser could be
halfway through a proxied request. Since the browser doesn't know if the
half-finished request was acted on or not, it can't retry it, so it has to
surface the error to the user. Instead, we want the proxy to be able to
warn the browser that this will happen soon, so that the browser can
establish a new tunnel with a new token, and start sending new requests
there. Conceptually this is a little like GOAWAY, but instead of "please
wrap up this connection", it's "please wrap up this tunnel stream". It uses
capsules, since this is a message from proxy to client. Here's a draft with
diagrams:

https://datatracker.ietf.org/doc/draft-schinazi-httpbis-wrap-up/
https://davidschinazi.github.io/draft-schinazi-httpbis-wrap-up/draft-schinazi-httpbis-wrap-up.html

I'd love to hear your thoughts.

Thanks,
David

Received on Friday, 5 July 2024 22:29:53 UTC