The sa_family of accept socket is equal 0

nginx version: 1.63
OS version: hp-ux B.11.23

Client connect server with telnet, by GDB, I find:

ngx_event_accept.c, function ngx_event_accept, line 279, the value of
‘c->addr_text.len’ is zero,
but the server socket’s value is ok

who can get this problem?

thanks

Posted at Nginx Forum:

Hello!

On Mon, Jan 25, 2016 at 01:52:54AM -0500, guitao_w wrote:

nginx version: 1.63
OS version: hp-ux B.11.23

Client connect server with telnet, by GDB, I find:

ngx_event_accept.c, function ngx_event_accept, line 279, the value of
‘c->addr_text.len’ is zero,
but the server socket’s value is ok

who can get this problem?

Unfortunately, HP-UX B.11.23 isn’t something easy to find for
testing. So I wouldn’t expect this can be debugged by anyone
except you.

My best guess is that the problem is caused by multiple versions
of socket functions on HP-UX, see this commit for some details (it
was done after some basic testing on HP-UX B.11.31):

http://hg.nginx.org/nginx/rev/489839d07b38

Though given that 11.23 is quite old it is possible that the
situation is different there.


Maxim D.
http://nginx.org/