diff --git a/src/event/ngx_event.c b/src/event/ngx_event.c index 878372c00..34a07e4dc 100644 --- a/src/event/ngx_event.c +++ b/src/event/ngx_event.c @@ -811,7 +811,12 @@ ngx_event_process_init(ngx_cycle_t *cycle) rev->handler = ngx_event_accept; - if (ngx_use_accept_mutex) { + if (ngx_use_accept_mutex +#if (NGX_HAVE_REUSEPORT) + && !ls[i].reuseport +#endif + ) + { continue; }