Why NGX_SOCKADDRLEN is 512?
speedfirst
nginx-forum at nginx.us
Tue Mar 1 11:59:06 MSK 2011
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.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,179363,179379#msg-179379
More information about the nginx
mailing list