mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 14:13:33 -06:00
add listen events for win32 only after accept mutex is hold
This commit is contained in:
parent
bb8971fd26
commit
9441ffadbe
@ -776,6 +776,10 @@ ngx_event_process_init(ngx_cycle_t *cycle)
|
||||
|
||||
rev->handler = ngx_event_acceptex;
|
||||
|
||||
if (ngx_use_accept_mutex) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ngx_add_event(rev, 0, NGX_IOCP_ACCEPT) == NGX_ERROR) {
|
||||
return NGX_ERROR;
|
||||
}
|
||||
@ -792,6 +796,10 @@ ngx_event_process_init(ngx_cycle_t *cycle)
|
||||
} else {
|
||||
rev->handler = ngx_event_accept;
|
||||
|
||||
if (ngx_use_accept_mutex) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ngx_add_event(rev, NGX_READ_EVENT, 0) == NGX_ERROR) {
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user