comparison src/http/ngx_http_core_module.c @ 3345:d8228f0b5113

evaluate maximum captures size on configuration phase
author Igor Sysoev <igor@sysoev.ru>
date Mon, 16 Nov 2009 19:11:38 +0000
parents 42c16d8bddbe
children 75b96847351a
comparison
equal deleted inserted replaced
3344:1aed55182ea2 3345:d8228f0b5113
2756 cmcf->variables_hash_bucket_size = 64; 2756 cmcf->variables_hash_bucket_size = 64;
2757 } 2757 }
2758 2758
2759 cmcf->variables_hash_bucket_size = 2759 cmcf->variables_hash_bucket_size =
2760 ngx_align(cmcf->variables_hash_bucket_size, ngx_cacheline_size); 2760 ngx_align(cmcf->variables_hash_bucket_size, ngx_cacheline_size);
2761
2762 if (cmcf->ncaptures) {
2763 cmcf->ncaptures = (cmcf->ncaptures + 1) * 3;
2764 }
2761 2765
2762 return NGX_CONF_OK; 2766 return NGX_CONF_OK;
2763 } 2767 }
2764 2768
2765 2769