mirror of
https://github.com/nginx/nginx.git
synced 2024-12-18 07:37:49 +08:00
Removed unused flag accept_context_updated from ngx_event_t.
Also, removed practically unused flag accept_context_updated from ngx_connection_t.
This commit is contained in:
parent
dcf3d20874
commit
fb6c764921
@ -186,10 +186,6 @@ struct ngx_connection_s {
|
|||||||
|
|
||||||
unsigned need_last_buf:1;
|
unsigned need_last_buf:1;
|
||||||
|
|
||||||
#if (NGX_HAVE_IOCP)
|
|
||||||
unsigned accept_context_updated:1;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (NGX_HAVE_AIO_SENDFILE)
|
#if (NGX_HAVE_AIO_SENDFILE)
|
||||||
unsigned busy_count:2;
|
unsigned busy_count:2;
|
||||||
#endif
|
#endif
|
||||||
|
@ -76,11 +76,6 @@ struct ngx_event_s {
|
|||||||
|
|
||||||
unsigned cancelable:1;
|
unsigned cancelable:1;
|
||||||
|
|
||||||
#if (NGX_WIN32)
|
|
||||||
/* setsockopt(SO_UPDATE_ACCEPT_CONTEXT) was successful */
|
|
||||||
unsigned accept_context_updated:1;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (NGX_HAVE_KQUEUE)
|
#if (NGX_HAVE_KQUEUE)
|
||||||
unsigned kq_vnode:1;
|
unsigned kq_vnode:1;
|
||||||
|
|
||||||
|
@ -41,8 +41,8 @@ ngx_event_acceptex(ngx_event_t *rev)
|
|||||||
ngx_log_error(NGX_LOG_CRIT, c->log, ngx_socket_errno,
|
ngx_log_error(NGX_LOG_CRIT, c->log, ngx_socket_errno,
|
||||||
"setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed for %V",
|
"setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed for %V",
|
||||||
&c->addr_text);
|
&c->addr_text);
|
||||||
} else {
|
/* TODO: close socket */
|
||||||
c->accept_context_updated = 1;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngx_getacceptexsockaddrs(c->buffer->pos,
|
ngx_getacceptexsockaddrs(c->buffer->pos,
|
||||||
|
Loading…
Reference in New Issue
Block a user