Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-05-07 13:20:42 +0400
committerIgor Sysoev <igor@sysoev.ru>2007-05-07 13:20:42 +0400
commit08d068f943b22adfdeb152397cd84449a24dcc68 (patch)
treee43ea7a024eb905dd718823ec5e7fe4bd6467120 /src/core/ngx_palloc.h
parent5a8bc361182d216e6d594a0546e329dff72a9b65 (diff)
limit minimal pool size
Diffstat (limited to 'src/core/ngx_palloc.h')
-rw-r--r--src/core/ngx_palloc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/ngx_palloc.h b/src/core/ngx_palloc.h
index 76c6af15a..13443d7dd 100644
--- a/src/core/ngx_palloc.h
+++ b/src/core/ngx_palloc.h
@@ -19,7 +19,9 @@
*/
#define NGX_MAX_ALLOC_FROM_POOL (ngx_pagesize - 1)
-#define NGX_DEFAULT_POOL_SIZE (16 * 1024)
+#define NGX_DEFAULT_POOL_SIZE (16 * 1024)
+#define NGX_MIN_POOL_SIZE \
+ (sizeof(ngx_pool_t) + 2 * sizeof(ngx_pool_large_t))
typedef void (*ngx_pool_cleanup_pt)(void *data);