Thanks, i add a line " len = NGX_SOCKADDRLEN ", then , it is ok! thanks very much. but i want to know , why? (struct sockaddr *) &sa and &len as are input paramter, why len need initialized? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239883,239939#msg-239939