diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2014-03-31 21:38:30 +0400 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2014-03-31 21:38:30 +0400 |
commit | 23f66898463308fdc70ab2659273fb9804f29370 (patch) | |
tree | 3b714d7a7014f03c13c3340cfbca22a40248b275 /src/core/ngx_slab.h | |
parent | 8f6958baa97b43d16185364dcfb7d68361012740 (diff) |
Core: slab log_nomem flag.
The flag allows to suppress "ngx_slab_alloc() failed: no memory" messages
from a slab allocator, e.g., if an LRU expiration is used by a consumer
and allocation failures aren't fatal.
The flag is now used in the SSL session cache code, and in the limit_req
module.
Diffstat (limited to 'src/core/ngx_slab.h')
-rw-r--r-- | src/core/ngx_slab.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/ngx_slab.h b/src/core/ngx_slab.h index c5e420bfa..5735e3bb3 100644 --- a/src/core/ngx_slab.h +++ b/src/core/ngx_slab.h @@ -39,6 +39,8 @@ typedef struct { u_char *log_ctx; u_char zero; + unsigned log_nomem:1; + void *data; void *addr; } ngx_slab_pool_t; |