Mercurial > hg > nginx
comparison src/http/modules/ngx_http_gzip_filter_module.c @ 2412:086c20fe2e97
set default gzip_buffers to 32 4k or 16 8k
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 16 Dec 2008 16:15:52 +0000 |
parents | bbfaeb220e90 |
children | 3d60d55b9ad0 |
comparison
equal
deleted
inserted
replaced
2411:3b2203ace9a8 | 2412:086c20fe2e97 |
---|---|
1092 ngx_http_gzip_conf_t *prev = parent; | 1092 ngx_http_gzip_conf_t *prev = parent; |
1093 ngx_http_gzip_conf_t *conf = child; | 1093 ngx_http_gzip_conf_t *conf = child; |
1094 | 1094 |
1095 ngx_conf_merge_value(conf->enable, prev->enable, 0); | 1095 ngx_conf_merge_value(conf->enable, prev->enable, 0); |
1096 | 1096 |
1097 ngx_conf_merge_bufs_value(conf->bufs, prev->bufs, 4, ngx_pagesize); | 1097 ngx_conf_merge_bufs_value(conf->bufs, prev->bufs, |
1098 (128 * 1024) / ngx_pagesize, ngx_pagesize); | |
1098 | 1099 |
1099 ngx_conf_merge_value(conf->level, prev->level, 1); | 1100 ngx_conf_merge_value(conf->level, prev->level, 1); |
1100 ngx_conf_merge_size_value(conf->wbits, prev->wbits, MAX_WBITS); | 1101 ngx_conf_merge_size_value(conf->wbits, prev->wbits, MAX_WBITS); |
1101 ngx_conf_merge_size_value(conf->memlevel, prev->memlevel, | 1102 ngx_conf_merge_size_value(conf->memlevel, prev->memlevel, |
1102 MAX_MEM_LEVEL - 1); | 1103 MAX_MEM_LEVEL - 1); |