ssl_session_timeout was set only if builtin cache was used

This commit is contained in:
Igor Sysoev 2007-01-11 18:57:09 +00:00
parent b317945089
commit 7fe33a9f58

View File

@ -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;