Permalink
Browse files

Actually enable memcache session storage

One little 'if' statement I missed, and the whole shebang gets disabled.
How disappointing.
  • Loading branch information...
1 parent 4b48380 commit 62f7ecc9dc571e879d1a8c8129a47b40a7d67dc7 @mpalmer committed Mar 23, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/http/modules/ngx_http_ssl_module.c
View
5 src/http/modules/ngx_http_ssl_module.c
@@ -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);
@@ -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;
}

0 comments on commit 62f7ecc

Please sign in to comment.