comparison src/stream/ngx_stream.c @ 7315:e7b2b907c0f8

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 12 Jul 2018 19:50:02 +0300
parents d7ce41bdf050
children 4f9b72a229c1
comparison
equal deleted inserted replaced
7314:3dfc1584ad75 7315:e7b2b907c0f8
536 return NGX_CONF_ERROR; 536 return NGX_CONF_ERROR;
537 } 537 }
538 break; 538 break;
539 } 539 }
540 540
541 if (ngx_clone_listening(cf, ls) != NGX_OK) {
542 return NGX_CONF_ERROR;
543 }
544
545 addr++; 541 addr++;
546 last--; 542 last--;
547 } 543 }
548 } 544 }
549 545