For an IPv6, sizeof (struct sockaddr_in6) is only 28bytes, so why set NGX_SOCKADDRLEN 512? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,179363,179363#msg-179363