mirror of
https://github.com/nginx/nginx.git
synced 2024-11-24 04:49:01 +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;
|
||||
|
||||
#if (NGX_HAVE_IOCP)
|
||||
unsigned accept_context_updated:1;
|
||||
#endif
|
||||
|
||||
#if (NGX_HAVE_AIO_SENDFILE)
|
||||
unsigned busy_count:2;
|
||||
#endif
|
||||
|
@ -76,11 +76,6 @@ struct ngx_event_s {
|
||||
|
||||
unsigned cancelable:1;
|
||||
|
||||
#if (NGX_WIN32)
|
||||
/* setsockopt(SO_UPDATE_ACCEPT_CONTEXT) was successful */
|
||||
unsigned accept_context_updated:1;
|
||||
#endif
|
||||
|
||||
#if (NGX_HAVE_KQUEUE)
|
||||
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,
|
||||
"setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed for %V",
|
||||
&c->addr_text);
|
||||
} else {
|
||||
c->accept_context_updated = 1;
|
||||
/* TODO: close socket */
|
||||
return;
|
||||
}
|
||||
|
||||
ngx_getacceptexsockaddrs(c->buffer->pos,
|
||||
|
Loading…
Reference in New Issue
Block a user