diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2018-07-12 19:50:02 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2018-07-12 19:50:02 +0300 |
commit | 751bdd3bb2b6ff54be09c37ff328f258fed520fb (patch) | |
tree | 6ca2cfcbd7a21422d630960eba9662272773e1a6 /src/http/ngx_http.c | |
parent | a8e38e2a9c1c9f3afb22fdb196e85fb2f28c192c (diff) |
Events: moved sockets cloning to ngx_event_init_conf().
Previously, listenings sockets were not cloned if the worker_processes
directive was specified after "listen ... reuseport".
This also simplifies upcoming configuration check on the number
of worker connections, as it needs to know the number of listening
sockets before cloning.
Diffstat (limited to 'src/http/ngx_http.c')
-rw-r--r-- | src/http/ngx_http.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index 9d8b6d79a..5e2022690 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -1685,10 +1685,6 @@ ngx_http_init_listening(ngx_conf_t *cf, ngx_http_conf_port_t *port) break; } - if (ngx_clone_listening(cf, ls) != NGX_OK) { - return NGX_ERROR; - } - addr++; last--; } |