Skip to content

Commit

Permalink
Actually enable memcache session storage
Browse files Browse the repository at this point in the history
One little 'if' statement I missed, and the whole shebang gets disabled.
How disappointing.
  • Loading branch information
mpalmer committed Mar 23, 2011
1 parent 4b48380 commit 62f7ecc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/http/modules/ngx_http_ssl_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <ngx_core.h>
#include <ngx_http.h>


typedef ngx_int_t (*ngx_ssl_variable_handler_pt)(ngx_connection_t *c,
ngx_pool_t *pool, ngx_str_t *s);

Expand Down Expand Up @@ -689,7 +688,9 @@ ngx_http_ssl_session_cache(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
goto invalid;
}

if (sscf->ext_session_cache.shm_zone && sscf->builtin_session_cache == NGX_CONF_UNSET) {
if ((sscf->ext_session_cache.shm_zone
|| sscf->ext_session_cache.memcache_name.len > 0)
&& sscf->builtin_session_cache == NGX_CONF_UNSET) {
sscf->builtin_session_cache = NGX_SSL_NO_BUILTIN_SCACHE;
}

Expand Down

0 comments on commit 62f7ecc

Please sign in to comment.