Skip to content

Commit

Permalink
Events: the "accept_mutex" directive is turned off by default.
Browse files Browse the repository at this point in the history
Now it is believed that the accept mutex brings more harm than benefits.
Especially in various benchmarks it often results in situation where only
one worker grabs all connections.
  • Loading branch information
VBart committed Jul 15, 2016
1 parent 6c2b086 commit 46dd747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event/ngx_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ ngx_event_core_init_conf(ngx_cycle_t *cycle, void *conf)
ngx_conf_init_ptr_value(ecf->name, event_module->name->data);

ngx_conf_init_value(ecf->multi_accept, 0);
ngx_conf_init_value(ecf->accept_mutex, 1);
ngx_conf_init_value(ecf->accept_mutex, 0);
ngx_conf_init_msec_value(ecf->accept_mutex_delay, 500);

return NGX_CONF_OK;
Expand Down

0 comments on commit 46dd747

Please sign in to comment.