From dfd81a23b2771fa8a9be37a2a911562826005124 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 4 Aug 2011 11:12:30 +0000 Subject: A new fix for the case when ssl_session_cache defined, but ssl is not enabled in any server. The previous r1033 does not help when unused zone becomes used after reconfiguration, so it is backed out. The initial thought was to make SSL modules independed from SSL implementation and to keep OpenSSL code dependance as much as in separate files. --- src/http/modules/ngx_http_ssl_module.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/http/modules') diff --git a/src/http/modules/ngx_http_ssl_module.c b/src/http/modules/ngx_http_ssl_module.c index 120a858df..143f04d57 100644 --- a/src/http/modules/ngx_http_ssl_module.c +++ b/src/http/modules/ngx_http_ssl_module.c @@ -626,6 +626,8 @@ ngx_http_ssl_session_cache(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) sscf->builtin_session_cache = NGX_SSL_NO_BUILTIN_SCACHE; } + sscf->shm_zone->init = ngx_ssl_session_cache_init; + return NGX_CONF_OK; invalid: -- cgit