Browse Source

Merge pull request #926 from wangfakang/fix_reuseport

Fix: when the worker_processes is set to auto, the reuse_port did not work
pull/933/head
Xiaochen Wang 8 years ago
committed by GitHub
parent
commit
989243c8de
  1. 2
      src/core/nginx.c

2
src/core/nginx.c

@ -1359,7 +1359,7 @@ ngx_set_worker_processes(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
if (ngx_strncasecmp((u_char *) "auto", value[1].data, 4) == 0) {
ccf->worker_processes = 0;
ccf->worker_processes = ngx_ncpu;
return NGX_CONF_OK;
}

Loading…
Cancel
Save