/ Zope / Apsis / Pound Mailing List / Archive / 2006 / 2006-05 / Backends over Unix domain socket

[ << ] [ >> ]

[ pound 2.0.5 config file syntax / Michael Kaplan ... ] [ redirect all request with file uploads to a ... ]

Backends over Unix domain socket
Cliff Wells <cliff(at)develix.com>
2006-05-16 00:03:06 [ FULL ]
Hi, 

It doesn't appear possible now, but is there some technical limitation
that would prevent pound from connecting to backends over a local domain
socket rather than a TCP port (provided pound and backend reside on same
system, of course)?  There would seem to be some benefits to do doing so
(correct me if I'm wrong on any or all): 

1) performance
2) reduced resource consumption (in terms of ports)
3) simplified permissions (file permissions to restrict access vs using
something like selinux to secure ports)

If this idea isn't out in left field, where would I make a feature
request?

Regards,
Cliff
[...]

Re: [Pound Mailing List] Backends over Unix domain socket
Robert Segall <roseg(at)apsis.ch>
2006-05-17 19:34:36 [ FULL ]
On Mon, 2006-05-15 at 15:03 -0700, Cliff Wells wrote:[...]

There is no serious technical limitation - a Unix domain socket supports
pretty much the same operations as an IP socket. The real question is
what would it be used for: which web servers do you know of that support
Unix domain sockets?[...]

Re: [Pound Mailing List] Backends over Unix domain socket
Cliff Wells <cliff(at)develix.com>
2006-05-17 21:21:54 [ FULL ]
On Wed, 2006-05-17 at 19:34 +0200, Robert Segall wrote:
[...]

Lighttpd for one, but mostly for web frameworks that don't have to
reside behind a webserver (i.e. Ruby on Rails, TurboGears, Twisted,
etc).  All of these (and many others) can all use domain sockets.

There are many companies (myself included) that specialize in hosting
these types of frameworks and I know for myself I'd rather use a domain
socket if possible.

Regards,
Cliff

Re: [Pound Mailing List] Backends over Unix domain socket
Robert Segall <roseg(at)apsis.ch>
2006-05-18 18:51:57 [ FULL ]
On Wed, 2006-05-17 at 12:21 -0700, Cliff Wells wrote:[...]

OK, we'll have a look at it. If it's not too much work (which I don't
expect) it'll show up soon.[...]

Re: [Pound Mailing List] Backends over Unix domain socket
Cliff Wells <cliff(at)develix.com>
2006-05-18 21:03:47 [ FULL ]
On Thu, 2006-05-18 at 18:51 +0200, Robert Segall wrote:
[...]

That's great.  I'd be more than willing to beta test for you as well.
Thanks a lot.

Regards,
Cliff

Re: [Pound Mailing List] Backends over Unix domain socket
gauze(at)dropdead.org
2006-05-18 21:15:46 [ FULL ]
Quoting Cliff Wells <cliff(at)develix.com>:
[...][...][...]

does this mean you'll have to amend the claim that pound is not a web 
server now ;-)


[...]

Re: [Pound Mailing List] Backends over Unix domain socket
Cliff Wells <cliff(at)develix.com>
2006-05-20 14:14:01 [ FULL ]
On Thu, 2006-05-18 at 18:51 +0200, Robert Segall wrote:[...]

Before you start, I've already done it (against pound 2.0.5), although I
need to do some more testing.  Using Lighttpd as a backend, I'm able to
serve up static pages no problem, but for some reason CGI's aren't
working (it tries to download the CGI rather than display its output).
This may be a bug in Lighttpd but I'll need to test some more to track
it down, and before that, I'll need some sleep :P

Regards,
Cliff

MailBoxer