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

View File

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

View File

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