summaryrefslogtreecommitdiffhomepage
path: root/src/event/ngx_event_openssl.h
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2022-10-12 20:14:36 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2022-10-12 20:14:36 +0300
commit4ea6baf7bc64cd9936f9e8684667e04471b038f4 (patch)
tree5a21bc4eec4f516021e597807b93a30c7a6ff22f /src/event/ngx_event_openssl.h
parent23ce9baf0e9802571eae59f29c83eee18628e568 (diff)
downloadnginx-4ea6baf7bc64cd9936f9e8684667e04471b038f4.tar.gz
nginx-4ea6baf7bc64cd9936f9e8684667e04471b038f4.tar.bz2
SSL: reduced logging of session cache failures (ticket #621).
Session cache allocations might fail as long as the new session is different in size from the one least recently used (and freed when the first allocation fails). In particular, it might not be possible to allocate space for sessions with client certificates, since they are noticeably bigger than normal sessions. To ensure such allocation failures won't clutter logs, logging level changed to "warn", and logging is now limited to at most one warning per second.
Diffstat (limited to '')
-rw-r--r--src/event/ngx_event_openssl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/event/ngx_event_openssl.h b/src/event/ngx_event_openssl.h
index c9e86d9c0..4d005ed75 100644
--- a/src/event/ngx_event_openssl.h
+++ b/src/event/ngx_event_openssl.h
@@ -150,6 +150,7 @@ typedef struct {
ngx_rbtree_t session_rbtree;
ngx_rbtree_node_t sentinel;
ngx_queue_t expire_queue;
+ time_t fail_time;
} ngx_ssl_session_cache_t;