aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-01-11 18:57:09 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-01-11 18:57:09 +0000
commit7fe33a9f589b579700a07727c75b75bc9e294884 (patch)
tree8992ac55bd52aeb2f988b1ea5869f610f814aaa3 /src
parentb3179450894c9bd9d84bbad9104e12c7c103eb37 (diff)
downloadnginx-7fe33a9f589b579700a07727c75b75bc9e294884.tar.gz
nginx-7fe33a9f589b579700a07727c75b75bc9e294884.zip
ssl_session_timeout was set only if builtin cache was used
Diffstat (limited to 'src')
-rw-r--r--src/event/ngx_event_openssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c
index 4f029fe5b..69ea57a2a 100644
--- a/src/event/ngx_event_openssl.c
+++ b/src/event/ngx_event_openssl.c
@@ -1160,10 +1160,10 @@ ngx_ssl_session_cache(ngx_ssl_t *ssl, ngx_str_t *sess_ctx,
if (builtin_session_cache != NGX_SSL_DFLT_BUILTIN_SCACHE) {
SSL_CTX_sess_set_cache_size(ssl->ctx, builtin_session_cache);
}
-
- SSL_CTX_set_timeout(ssl->ctx, timeout);
}
+ SSL_CTX_set_timeout(ssl->ctx, timeout);
+
if (shm_zone) {
shm_zone->init = ngx_ssl_session_cache_init;