diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-12-16 16:15:52 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-12-16 16:15:52 +0000 |
commit | 52b815e4524d588aa55e8bb46845b8412eaeb0a0 (patch) | |
tree | 62d88550e48f0aa4c02a317740c342fbc0992638 | |
parent | 7505928d9f3a515e067d3e20508df66780168e6b (diff) | |
download | nginx-52b815e4524d588aa55e8bb46845b8412eaeb0a0.tar.gz nginx-52b815e4524d588aa55e8bb46845b8412eaeb0a0.zip |
set default gzip_buffers to 32 4k or 16 8k
-rw-r--r-- | src/http/modules/ngx_http_gzip_filter_module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_gzip_filter_module.c b/src/http/modules/ngx_http_gzip_filter_module.c index 8a608abb5..843a5b9dc 100644 --- a/src/http/modules/ngx_http_gzip_filter_module.c +++ b/src/http/modules/ngx_http_gzip_filter_module.c @@ -1094,7 +1094,8 @@ ngx_http_gzip_merge_conf(ngx_conf_t *cf, void *parent, void *child) ngx_conf_merge_value(conf->enable, prev->enable, 0); - ngx_conf_merge_bufs_value(conf->bufs, prev->bufs, 4, ngx_pagesize); + ngx_conf_merge_bufs_value(conf->bufs, prev->bufs, + (128 * 1024) / ngx_pagesize, ngx_pagesize); ngx_conf_merge_value(conf->level, prev->level, 1); ngx_conf_merge_size_value(conf->wbits, prev->wbits, MAX_WBITS); |