Also, removed practically unused flag accept_context_updated from
ngx_connection_t.
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
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;
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,