Skip to content

prop365: X-Tor-Optimistic unclear distinction between "optimistic connections" and "optimistic data"

There are two separate concepts: "optimistic connections" and "optimistic data". I think the section as written isn't very clear about this distinction.

I think the intended behaviour is:

Optimistic data: The proxy MUST not drop optimistic data from the client and SHOULD forward the client's data optimistically before the connection has been established. (Regardless of the header value.)

Optimistic connections: When the value of this header is "on", the proxy SHOULD return a 200 OK (CONNECTED) response immediately. If the connection is optimistic, optimistic data SHOULD (MUST?) be used as well.

I think it would be nice if this section was reworded to make this distinction clearer. Currently the "optimistic data" part is seemingly stated twice, but slightly differently.

When the value of this header is "on", the proxy SHOULD [...] begin relaying data from the client immediately.

Regardless of whether this extension is on or off, [...]; proxies [...] SHOULD send that data optimistically (after the BEGIN cell, before any CONNECTED is received).

/cc @nickm

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information