fix r3331:
*) now pools are aligned to 16 bytes
*) forbidden to set non-aligned pool sizes
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 7de430b..e05487e 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -4318,8 +4318,15 @@
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;
}