Mercurial > hg > nginx
comparison src/http/ngx_http.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 | cce6936ed2f4 |
children | 4f9b72a229c1 |
comparison
equal
deleted
inserted
replaced
7314:3dfc1584ad75 | 7315:e7b2b907c0f8 |
---|---|
1683 return NGX_ERROR; | 1683 return NGX_ERROR; |
1684 } | 1684 } |
1685 break; | 1685 break; |
1686 } | 1686 } |
1687 | 1687 |
1688 if (ngx_clone_listening(cf, ls) != NGX_OK) { | |
1689 return NGX_ERROR; | |
1690 } | |
1691 | |
1692 addr++; | 1688 addr++; |
1693 last--; | 1689 last--; |
1694 } | 1690 } |
1695 | 1691 |
1696 return NGX_OK; | 1692 return NGX_OK; |