From 751bdd3bb2b6ff54be09c37ff328f258fed520fb Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Thu, 12 Jul 2018 19:50:02 +0300 Subject: 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. --- src/http/ngx_http.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/http/ngx_http.c') 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--; } -- cgit v1.2.3