mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 10:19:00 +08:00
ssl_session_timeout was set only if builtin cache was used
This commit is contained in:
parent
b317945089
commit
7fe33a9f58
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user