Klaus Demo nginx / 56fce56
Use NGX_DEFAULT_POOL_SIZE macro where appropriate. Ruslan Ermilov 9 years ago
4 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
1313
1414
1515 #ifndef NGX_CYCLE_POOL_SIZE
16 #define NGX_CYCLE_POOL_SIZE 16384
16 #define NGX_CYCLE_POOL_SIZE NGX_DEFAULT_POOL_SIZE
1717 #endif
1818
1919
429429 return NGX_CONF_ERROR;
430430 }
431431
432 pool = ngx_create_pool(16384, cf->log);
432 pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log);
433433 if (pool == NULL) {
434434 return NGX_CONF_ERROR;
435435 }
436436
437437 ngx_memzero(&ctx, sizeof(ngx_http_geo_conf_ctx_t));
438438
439 ctx.temp_pool = ngx_create_pool(16384, cf->log);
439 ctx.temp_pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log);
440440 if (ctx.temp_pool == NULL) {
441441 return NGX_CONF_ERROR;
442442 }
226226 var->get_handler = ngx_http_map_variable;
227227 var->data = (uintptr_t) map;
228228
229 pool = ngx_create_pool(16384, cf->log);
229 pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log);
230230 if (pool == NULL) {
231231 return NGX_CONF_ERROR;
232232 }
14781478
14791479 ngx_memzero(&ha, sizeof(ngx_hash_keys_arrays_t));
14801480
1481 ha.temp_pool = ngx_create_pool(16384, cf->log);
1481 ha.temp_pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log);
14821482 if (ha.temp_pool == NULL) {
14831483 return NGX_ERROR;
14841484 }