[PATH] support for UNIX socket in abstract namespace
igor at sysoev.ru
Mon May 23 22:37:26 MSD 2011
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.socklen = sizeof(struct sockaddr_un);
> u->addrs.socklen = sizeof(saun->sun_family)+len;
nxg_memcpy should work here.
More information about the nginx