Re: [RFC 2/2] Add Git-aware CGI for Git-aware smart HTTP transport
- From
- H. Peter Anvin <hpa@zytor.com>
- Date
- Aug 5, 2008, 01:03 UTC
- Message-ID
- <4897A6E4.3070508@zytor.com>
- In-Reply-To
- <20080804144824.GB27666@spearce.org>
Shawn O. Pearce wrote:
Show 12 quoted lines
> > Currently git-http-backend requests no caching for info/refs, but > I could see us tweaking that to permit several minutes of caching, > especially on big public sites like kernel.org. Having info/refs > report stale by 5 minutes is not an issue when writes to there > already have a lag due to the master-slave mirroring system in use. > > Because git-http-backend emulates a dumb server there is a command > dispatch table based upon the URL submitted. Thus we already have > the command dispatch behavior implemented in the URL and doing it > in the POST body would only complicate the code further. >
Let's put it this way: we're not seeing a huge amount of load from git protocol requests, and I'm going to assume "git+http" protocol to be used only by sites behind braindamaged firewalls (everyone else would use git protocol), so I'm not really all that worried about it.
I'm not sure if "emulating a dumb server" is desirable at all; it seems like it would at least in part defeat the purpose of minimizing the transaction count and otherwise be as much of a "smart" server as the medium permits.
-hpa