Welcome! Log In Create A New Profile

Advanced

Re: [PATH] support for UNIX socket in abstract namespace

All files from this thread

File Name File Size   Posted by Date  
unix_abstract.patch 1 KB open | download roberto 05/23/2011 Read message
May 23, 2011 02:38PM
On Mon, May 23, 2011 at 08:17:46PM +0200, Roberto De Ioris wrote:
>
> > On Mon, May 23, 2011 at 07:42:02PM +0200, Roberto De Ioris wrote:
> >>
> >> > On Mon, May 23, 2011 at 04:18:30PM +0200, Roberto De Ioris wrote:
>
> This is the same code i made after you suggestion, but in the url parsing
> code (ngx_parse_unix_domain_url), ngx_cpystrn() is used and it takes '\0'
> in account.
>
> Changing ngx_cpystrn to not use \0 fixes the problem. Probably
> substituting it with ngx_memcpy is the way to go.
>
> Another thing to do is "fixing"
>
> u->addrs[0].socklen = sizeof(struct sockaddr_un);
>
> to
>
> u->addrs[0].socklen = sizeof(saun->sun_family)+len;

nxg_memcpy should work here.


--
Igor Sysoev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

[PATH] support for UNIX socket in abstract namespace Attachments

roberto May 23, 2011 10:20AM

Re: [PATH] support for UNIX socket in abstract namespace

Igor Sysoev May 23, 2011 12:36PM

Re: [PATH] support for UNIX socket in abstract namespace

roberto May 23, 2011 01:44PM

Re: [PATH] support for UNIX socket in abstract namespace

roberto May 23, 2011 01:46PM

Re: [PATH] support for UNIX socket in abstract namespace

Igor Sysoev May 23, 2011 01:50PM

Re: [PATH] support for UNIX socket in abstract namespace

Igor Sysoev May 23, 2011 01:52PM

Re: [PATH] support for UNIX socket in abstract namespace

roberto May 23, 2011 02:20PM

Re: [PATH] support for UNIX socket in abstract namespace

Igor Sysoev May 23, 2011 02:38PM

Re: [PATH] support for UNIX socket in abstract namespace

nri.pl September 17, 2012 03:05AM

Re: [PATH] support for UNIX socket in abstract namespace

Pavel Murzakov September 06, 2017 05:20PM

Re: [PATH] support for UNIX socket in abstract namespace

Maxim Dounin September 07, 2017 09:34AM

Re: [PATH] support for UNIX socket in abstract namespace

Pavel Murzakov September 07, 2017 10:03AM

Re: [PATH] support for UNIX socket in abstract namespace

Maxim Dounin September 07, 2017 11:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 282
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready