Re: [WIP PATCH 00/14] Protocol v2 patches
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 25, 2016, 16:23 UTC
- Message-ID
- <xmqqfut6150a.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <1464130008.24478.134.camel@twopensource.com>
David Turner <dturner@twopensource.com> writes:
Show 10 quoted lines
> I was looking at this again today, and noticed that it doesn't really > address the HTTP case. > > The central problem is that protocol v2 goes like this: > server: I have capabilities w,x,y, and z > client: I want capabilities x and z. > > But HTTP goes like this: > client: [request] > server: [response]
I wonder if that can be solved by speculative request?
Let the connection initiator say "If you can do x and z, please do so", and allow the responder to say either "OK, I can do x and z; by the way the full capabilites I support are w, x, y and z", or "Sorry, can't do that; I have capabilities w, x, and y".