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

Re: FastCGI support in gitweb

From
Jakub Narebski <jnareb@gmail.com>
Date
Mar 4, 2008, 17:22 UTC
Message-ID
<m37igiietq.fsf@localhost.localdomain>
In-Reply-To
<slrnfsqoai.njm.jgoerzen@katherina.lan.complete.org>

The following message is a courtesy copy of an article that has been posted to gmane.comp.version-control.git as well.

[Cc: Sam Vilain, Juan Jose Comellas]
John Goerzen <jgoerzen@complete.org> writes:
> FastCGI is much, much lighter on resource requirements if you are
> deploying apps written in various languages on a single server.
> Sometimes even if you aren't.

If you want to add FastCGI support to gitweb, besides fulfilling constraints I have mentioned earlier (it must run as CGI and mod_perl, must run without CGI::Fast / FCGI), I think it would be best to separate input validation and dispatch into separate subroutine.

Perhaps even going as far as getting only required input in the
"action" routines, for example
  our ($hash, $hash_base) = gitweb_params('hash', 'hash_base');
at the beginning of git_commit() subroutine, etc.
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: John Goerzen
Message 8 of 8 in “FastCGI support in gitweb”
  1. Juan Jose ComellasMar 1, 2008
  2. Jakub NarebskiMar 1, 2008
  3. Sam VilainMar 3, 2008
  4. Jakub NarebskiMar 4, 2008
  5. John GoerzenMar 4, 2008
  6. Jakub NarebskiMar 4, 2008
  7. John GoerzenMar 4, 2008
  8. Jakub NarebskiMar 4, 2008

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.