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/core/ngx_connection.h | |
parent | a8e38e2a9c1c9f3afb22fdb196e85fb2f28c192c (diff) | |
download | nginx-751bdd3bb2b6ff54be09c37ff328f258fed520fb.tar.gz nginx-751bdd3bb2b6ff54be09c37ff328f258fed520fb.zip |
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/core/ngx_connection.h')
-rw-r--r-- | src/core/ngx_connection.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_connection.h b/src/core/ngx_connection.h index ef0755800..54059629e 100644 --- a/src/core/ngx_connection.h +++ b/src/core/ngx_connection.h @@ -210,7 +210,7 @@ struct ngx_connection_s { ngx_listening_t *ngx_create_listening(ngx_conf_t *cf, struct sockaddr *sockaddr, socklen_t socklen); -ngx_int_t ngx_clone_listening(ngx_conf_t *cf, ngx_listening_t *ls); +ngx_int_t ngx_clone_listening(ngx_cycle_t *cycle, ngx_listening_t *ls); ngx_int_t ngx_set_inherited_sockets(ngx_cycle_t *cycle); ngx_int_t ngx_open_listening_sockets(ngx_cycle_t *cycle); void ngx_configure_listening_sockets(ngx_cycle_t *cycle); |