aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-12-17 12:25:46 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-12-17 12:25:46 +0000
commit04799a6f7c69c525969255a3bf5acaa4959552d4 (patch)
tree66be6a0caa6ca245b1c1002cfd8bb006264ab65f /src/http/ngx_http_core_module.c
parenta75362dcdbd5d8d911ddf135f71b3be68ce5ef31 (diff)
downloadnginx-04799a6f7c69c525969255a3bf5acaa4959552d4.tar.gz
nginx-04799a6f7c69c525969255a3bf5acaa4959552d4.zip
fix r3331:
*) now pools are aligned to 16 bytes *) forbidden to set non-aligned pool sizes
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 7de430bc4..e05487ee2 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -4318,8 +4318,15 @@ ngx_http_core_pool_size(ngx_conf_t *cf, void *post, void *data)
if (*sp < NGX_MIN_POOL_SIZE) {
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
- "pool must be no less than %uz", NGX_MIN_POOL_SIZE);
+ "the pool size must be no less than %uz",
+ NGX_MIN_POOL_SIZE);
+ return NGX_CONF_ERROR;
+ }
+ if (*sp % NGX_POOL_ALIGNMENT) {
+ ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
+ "the pool size must be a multiple of %uz",
+ NGX_POOL_ALIGNMENT);
return NGX_CONF_ERROR;
}