You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Mladen Turk <mt...@apache.org> on 2009/02/18 14:21:56 UTC

[PATCH] add support for unix domain sockets

Hi,

Think this is valuable addition.
It doesn't change the API except
new APR_UNIX socket family mode.
In case of APR_UNSPEC it forces the
AF_UNIX if hostname starts with '/'

Changes do not touch the existing code
except adding few compares for family == APR_UNIX

I've extended the test suite as well,
but tested only on linux and darwin.

One possible addition would be
automatic umask on bind() or using
the new APR_PERMS_SET macros.

Comments?

Regards
-- 
^(TM)

Re: [PATCH] add support for unix domain sockets

Posted by Graham Leggett <mi...@sharp.fm>.
Mladen Turk wrote:

> Think this is valuable addition.
> It doesn't change the API except
> new APR_UNIX socket family mode.
> In case of APR_UNSPEC it forces the
> AF_UNIX if hostname starts with '/'
> 
> Changes do not touch the existing code
> except adding few compares for family == APR_UNIX
> 
> I've extended the test suite as well,
> but tested only on linux and darwin.
> 
> One possible addition would be
> automatic umask on bind() or using
> the new APR_PERMS_SET macros.
> 
> Comments?

I needed something like this recently, a definite +1 in concept. I 
eyeballed the patch, but haven't tried it in anger yet.

Regards,
Graham
--