[WIP/RFC v4 0/5] Support abstract Unix sockets

Alejandro Colomar alx.manpages at gmail.com
Tue Aug 23 23:00:26 UTC 2022


I'll resend v4 in a moment, since it didn't arrive to the list.

On 8/23/22 23:18, Alejandro Colomar wrote:
> Hi,
> 
> Patch set ready for review.
> Both 'listen' and 'proxy_pass' work fine, with the only caveat
> that writing a NUL character in the nginx.conf file is not the
> friendliest interface.  I will add a few more patches to make '@'
> a synonym for NUL, as many other projects do.
> 
> However, this patch set can be applied on its own if you prefer
> to make them separate, since this one adds the feature in its
> simplest way, and the upcoming patches are just making it more
> user friendly.  Please advice on your preferred way of proceeding.
> 
> Cheers,
> 
> Alex
> 
> 
> Changes:
> 
> v2:
>   - Complete rewrite from scratch (v1 was a month ago).
> 
> v3:
>   - Fix bugs in listener socket [Andrew Clayton].
>   - This version of the patch set wasn't sent to the list.
> 
> v4:
>   - Reorder patches.
>   - Improve commit logs.
> 
> Alejandro Colomar (5):
>    Optimize string copy in Unix sockets.
>    Use a minimal socklen.
>    Don't add a trailing '\0' for abstract Unix domain sockets.
>    Log abstract Unix domain sockets with a leading '@'.
>    Don't try to chmod(2) abstract Unix domain sockets.
> 
>   src/core/ngx_connection.c | 28 ++++++++++++++++------------
>   src/core/ngx_inet.c       | 33 +++++++++++++++++++++++++++------
>   2 files changed, 43 insertions(+), 18 deletions(-)
> 

-- 
Alejandro Colomar
<http://www.alejandro-colomar.es/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20220824/98115466/attachment.bin>


More information about the nginx-devel mailing list