Mercurial > hg > nginx-quic
comparison src/event/ngx_event_openssl.h @ 8935:38c71f9b2293
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 12 Oct 2022 20:14:36 +0300 |
parents | 3443c02ca1d1 |
children | 5244d3b165ff |
comparison
equal
deleted
inserted
replaced
8934:026ee23b6774 | 8935:38c71f9b2293 |
---|---|
148 | 148 |
149 typedef struct { | 149 typedef struct { |
150 ngx_rbtree_t session_rbtree; | 150 ngx_rbtree_t session_rbtree; |
151 ngx_rbtree_node_t sentinel; | 151 ngx_rbtree_node_t sentinel; |
152 ngx_queue_t expire_queue; | 152 ngx_queue_t expire_queue; |
153 time_t fail_time; | |
153 } ngx_ssl_session_cache_t; | 154 } ngx_ssl_session_cache_t; |
154 | 155 |
155 | 156 |
156 #ifdef SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB | 157 #ifdef SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB |
157 | 158 |