Fixed reuseport with accept_mutex.
This commit is contained in:
parent
c4b1b3907f
commit
66cb331a38
1 changed files with 6 additions and 1 deletions
|
@ -811,7 +811,12 @@ ngx_event_process_init(ngx_cycle_t *cycle)
|
||||||
|
|
||||||
rev->handler = ngx_event_accept;
|
rev->handler = ngx_event_accept;
|
||||||
|
|
||||||
if (ngx_use_accept_mutex) {
|
if (ngx_use_accept_mutex
|
||||||
|
#if (NGX_HAVE_REUSEPORT)
|
||||||
|
&& !ls[i].reuseport
|
||||||
|
#endif
|
||||||
|
)
|
||||||
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue