]> git.kaiwu.me - nginx.git/commit
Events: moved sockets cloning to ngx_event_init_conf().
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 12 Jul 2018 16:50:02 +0000 (19:50 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 12 Jul 2018 16:50:02 +0000 (19:50 +0300)
commit751bdd3bb2b6ff54be09c37ff328f258fed520fb
tree6ca2cfcbd7a21422d630960eba9662272773e1a6
parenta8e38e2a9c1c9f3afb22fdb196e85fb2f28c192c
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/core/ngx_connection.c
src/core/ngx_connection.h
src/event/ngx_event.c
src/http/ngx_http.c
src/stream/ngx_stream.c