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:
Ruslan Ermilov 2016-06-29 14:30:00 +03:00
parent dcf3d20874
commit fb6c764921
3 changed files with 2 additions and 11 deletions

View File

@ -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

View File

@ -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;

View File

@ -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,