mirror of
https://github.com/nginx/nginx.git
synced 2025-01-20 21:33:20 -06:00
delete unused field c->local_socklen
This commit is contained in:
parent
d2ac4e6dbe
commit
61490aa6b6
@ -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);
|
||||
}
|
||||
|
||||
|
@ -129,7 +129,6 @@ struct ngx_connection_s {
|
||||
#endif
|
||||
|
||||
struct sockaddr *local_sockaddr;
|
||||
socklen_t local_socklen;
|
||||
|
||||
ngx_buf_t *buffer;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user