Welcome! Log In Create A New Profile

Advanced

Re: Why NGX_SOCKADDRLEN is 512?

March 01, 2011 03:59AM
I think this way would be better:

#if (NGX_HAVE_UNIX_DOMAIN)
#define NGX_SOCKADDRLEN sizeof(struct sockaddr_un)
#else
#define NGX_SOCKADDRLEN sizeof(struct sockaddr_storage)
#endif

sizeof(sturct sockaddr_storage) is 128 in my Linux 64bit, 512 is too big.

anyway, this is not critical.
Subject Author Posted

Why NGX_SOCKADDRLEN is 512?

speedfirst March 01, 2011 02:28AM

Re: Why NGX_SOCKADDRLEN is 512?

Igor Sysoev March 01, 2011 03:00AM

Re: Why NGX_SOCKADDRLEN is 512?

speedfirst March 01, 2011 03:59AM

Re: Why NGX_SOCKADDRLEN is 512?

Igor Sysoev March 01, 2011 04:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
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