]> git.kaiwu.me - nginx.git/commit
Upstream: optimized use of SSL contexts (ticket #1234).
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 28 Jun 2022 23:47:45 +0000 (02:47 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 28 Jun 2022 23:47:45 +0000 (02:47 +0300)
commitd791b4aab418b0cbadbaf079fbb9360269d97941
tree6eefea26c897b8be7e4829c6c511146621d162c6
parent225a2c1b4a83d5813140a474716de8c33a9bbc2d
Upstream: optimized use of SSL contexts (ticket #1234).

To ensure optimal use of memory, SSL contexts for proxying are now
inherited from previous levels as long as relevant proxy_ssl_* directives
are not redefined.

Further, when no proxy_ssl_* directives are redefined in a server block,
we now preserve plcf->upstream.ssl in the "http" section configuration
to inherit it to all servers.

Similar changes made in uwsgi, grpc, and stream proxy.
src/http/modules/ngx_http_grpc_module.c
src/http/modules/ngx_http_proxy_module.c
src/http/modules/ngx_http_uwsgi_module.c
src/stream/ngx_stream_proxy_module.c