diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-11-16 19:11:38 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-11-16 19:11:38 +0000 |
commit | 42f5fb19ace6d56d5d49094adca3c1c983b51fa9 (patch) | |
tree | 49333b0ed4c882f5cbe46104bab932c0cf3ee5b6 /src/http/ngx_http_core_module.c | |
parent | d86a0bfed491fbaf75d2268856aa999621b7cdf0 (diff) | |
download | nginx-42f5fb19ace6d56d5d49094adca3c1c983b51fa9.tar.gz nginx-42f5fb19ace6d56d5d49094adca3c1c983b51fa9.zip |
evaluate maximum captures size on configuration phase
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r-- | src/http/ngx_http_core_module.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 7ae49a686..e6b1162a0 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -2759,6 +2759,10 @@ ngx_http_core_init_main_conf(ngx_conf_t *cf, void *conf) cmcf->variables_hash_bucket_size = ngx_align(cmcf->variables_hash_bucket_size, ngx_cacheline_size); + if (cmcf->ncaptures) { + cmcf->ncaptures = (cmcf->ncaptures + 1) * 3; + } + return NGX_CONF_OK; } |