git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Revamping the git protocol

From
Petr Baudis <pasky@suse.cz>
Date
Oct 21, 2005, 01:04 UTC
Message-ID
<20051021010429.GC30889@pasky.or.cz>
In-Reply-To
<4357BCBC.1020706@zytor.com>

Dear diary, on Thu, Oct 20, 2005 at 05:50:20PM CEST, I got a letter where "H. Peter Anvin" <hpa@zytor.com> told me that...

> Another issue is that currently there is no error information propagated 
> back to the client; the server logs an error in its own logs, but the 
> client is simply disconnected.

Yes. I agree that while it seems quite complex compared to what we have now, your proposal has good points. But if we are going with the challenge-response at all and if we are going with the simple form, I was merely trying to make sure that it is as compatible as possible.

> Anyone noticed that either of those schemes aren't actually 
> backward-compatible in any way (old client talking to new server will be 
> disconnected), and that unfortunately is the best thing one can do with 
> the current setup, exactly because there is no option negotiation phase?

Yes, option negotiation would solve this for us. But my scheme _is_ backwards-compatible in the way that new client taking to old server will not be disconnected, so it's 50% better than the original proposal.

But I think that considering the long run, we should either not do this challenge-response thing at all, and fix the problem by other (Linus') means, or go for the "complex" scheme. I'd prefer the latter - sending the error messages to the client alone is a huge improvement.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Previous: H. Peter AnvinNext: Linus Torvalds
Message 5 of 10 in “Revamping the git protocol”
  1. H. Peter AnvinOct 20, 2005
  2. Junio C HamanoOct 20, 2005
  3. Petr BaudisOct 20, 2005
  4. H. Peter AnvinOct 20, 2005
  5. Petr BaudisOct 21, 2005
  6. Linus TorvaldsOct 20, 2005
  7. H. Peter AnvinOct 20, 2005
  8. Linus TorvaldsOct 20, 2005
  9. Johannes SchindelinOct 20, 2005
  10. Linus TorvaldsOct 20, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.