Why NGX_SOCKADDRLEN is 512?
Igor Sysoev
igor at sysoev.ru
Tue Mar 1 12:02:45 MSK 2011
On Mar 1, 2011, at 11:59 , speedfirst wrote:
> 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.
The problem that struct sockaddr_storage is relatively recent thing.
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list