]> git.kaiwu.me - nginx.git/commitdiff
set default gzip_buffers to 32 4k or 16 8k
authorIgor Sysoev <igor@sysoev.ru>
Tue, 16 Dec 2008 16:15:52 +0000 (16:15 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 16 Dec 2008 16:15:52 +0000 (16:15 +0000)
src/http/modules/ngx_http_gzip_filter_module.c

index 8a608abb5e8a642a8c16dfff62fc6f7fd74c21e9..843a5b9dc8b9429b318602f82a7cfba83eb22806 100644 (file)
@@ -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);