delete unused field c->local_socklen

This commit is contained in:
Igor Sysoev 2009-11-01 19:29:49 +00:00
parent d2ac4e6dbe
commit 61490aa6b6
4 changed files with 2 additions and 4 deletions

View File

@ -894,7 +894,6 @@ ngx_connection_local_sockaddr(ngx_connection_t *c, ngx_str_t *s,
return NGX_ERROR;
}
c->local_socklen = len;
ngx_memcpy(c->local_sockaddr, &sa, len);
}

View File

@ -129,7 +129,6 @@ struct ngx_connection_s {
#endif
struct sockaddr *local_sockaddr;
socklen_t local_socklen;
ngx_buf_t *buffer;

View File

@ -152,7 +152,6 @@ ngx_event_accept(ngx_event_t *ev)
c->socklen = socklen;
c->listening = ls;
c->local_sockaddr = ls->sockaddr;
c->local_socklen = ls->socklen;
c->unexpected_eof = 1;

View File

@ -17,6 +17,7 @@ ngx_event_acceptex(ngx_event_t *rev)
{
ngx_listening_t *ls;
ngx_connection_t *c;
socklen_t len;
c = rev->data;
ls = c->listening;
@ -48,7 +49,7 @@ ngx_event_acceptex(ngx_event_t *rev)
ls->post_accept_buffer_size,
ls->socklen + 16,
ls->socklen + 16,
&c->local_sockaddr, &c->local_socklen,
&c->local_sockaddr, &len,
&c->sockaddr, &c->socklen);
if (ls->post_accept_buffer_size) {