mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 11:52:00 +00:00
add listen events for win32 only after accept mutex is hold
This commit is contained in:
parent
bb8971fd26
commit
9441ffadbe
1 changed files with 8 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue