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