# HG changeset patch # User Ruslan Ermilov # Date 1363881804 0 # Node ID 5482671df278719d67b78545344fc9159c5532e9 # Parent 4fef8ed5238919262b105153d390c54a8302fb65 Use NGX_DEFAULT_POOL_SIZE macro where appropriate. diff -r 4fef8ed52389 -r 5482671df278 src/core/ngx_cycle.h --- a/src/core/ngx_cycle.h Thu Mar 21 15:52:52 2013 +0000 +++ b/src/core/ngx_cycle.h Thu Mar 21 16:03:24 2013 +0000 @@ -14,7 +14,7 @@ #ifndef NGX_CYCLE_POOL_SIZE -#define NGX_CYCLE_POOL_SIZE 16384 +#define NGX_CYCLE_POOL_SIZE NGX_DEFAULT_POOL_SIZE #endif diff -r 4fef8ed52389 -r 5482671df278 src/http/modules/ngx_http_geo_module.c --- a/src/http/modules/ngx_http_geo_module.c Thu Mar 21 15:52:52 2013 +0000 +++ b/src/http/modules/ngx_http_geo_module.c Thu Mar 21 16:03:24 2013 +0000 @@ -430,14 +430,14 @@ return NGX_CONF_ERROR; } - pool = ngx_create_pool(16384, cf->log); + pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log); if (pool == NULL) { return NGX_CONF_ERROR; } ngx_memzero(&ctx, sizeof(ngx_http_geo_conf_ctx_t)); - ctx.temp_pool = ngx_create_pool(16384, cf->log); + ctx.temp_pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log); if (ctx.temp_pool == NULL) { return NGX_CONF_ERROR; } diff -r 4fef8ed52389 -r 5482671df278 src/http/modules/ngx_http_map_module.c --- a/src/http/modules/ngx_http_map_module.c Thu Mar 21 15:52:52 2013 +0000 +++ b/src/http/modules/ngx_http_map_module.c Thu Mar 21 16:03:24 2013 +0000 @@ -227,7 +227,7 @@ var->get_handler = ngx_http_map_variable; var->data = (uintptr_t) map; - pool = ngx_create_pool(16384, cf->log); + pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log); if (pool == NULL) { return NGX_CONF_ERROR; } diff -r 4fef8ed52389 -r 5482671df278 src/http/ngx_http.c --- a/src/http/ngx_http.c Thu Mar 21 15:52:52 2013 +0000 +++ b/src/http/ngx_http.c Thu Mar 21 16:03:24 2013 +0000 @@ -1479,7 +1479,7 @@ ngx_memzero(&ha, sizeof(ngx_hash_keys_arrays_t)); - ha.temp_pool = ngx_create_pool(16384, cf->log); + ha.temp_pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log); if (ha.temp_pool == NULL) { return NGX_ERROR; }