Web interface via FastCGI

Maxim Khitrov mkhitrov at gmail.com
Sun Aug 19 21:18:28 CDT 2007


On 8/19/07, Michael Smith <michael.smith at thalesatm.com> wrote:
> Maxim Khitrov wrote:
>
> > I need a way to either run hgwebdir.cgi behind a FastCGI wrapper that
> > is listening on a unix socket, or a dedicated FastCGI implementation
> > of the same script. If nothing like this is available right now, I
> > think it definitely needs to be worked on. CGI is just way to slow if
> > you have many people accessing your repository.
> >
> > Would greatly appreciate any suggestions.
>
> Can you call hg serve from inetd?

I can, but doesn't that have the same problem? It's open to the
outside. Not to mention that performance is no better than CGI... I
think. Actually I haven't used inetd in ages. Anyway, a few minutes
ago I came up on the following issue:

http://www.selenic.com/mercurial/bts/issue542

I took the file there and used lighttpd's spawn-fcgi program to get it
listening on a unix socket and running as www user. Now this seems to
work, but there is one problem. I keep getting "socket.error: (32,
'Broken pipe')" error on each request. Everything still loads, this is
just what comes up on the console. Any ideas on what it means and why
it happens?

- Max


More information about the Mercurial mailing list