Mercurial > hg > nginx
comparison src/http/modules/ngx_http_gzip_filter.c @ 157:70b36c805682
nginx-0.0.1-2003-10-23-19:54:19 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 23 Oct 2003 15:54:19 +0000 |
parents | afc333135a6b |
children | d377ee423603 |
comparison
equal
deleted
inserted
replaced
156:afc333135a6b | 157:70b36c805682 |
---|---|
245 * Besides we free() this memory as soon as the gzipping will complete | 245 * Besides we free() this memory as soon as the gzipping will complete |
246 * and do not wait while a whole response will be sent to a client. | 246 * and do not wait while a whole response will be sent to a client. |
247 * | 247 * |
248 * 8K is for zlib deflate_state (~6K). | 248 * 8K is for zlib deflate_state (~6K). |
249 * | 249 * |
250 * TODO: 64-bit, round to PAGE_SIZE | 250 * TODO: 64-bit, round to PAGE_SIZE, autoconf of deflate_state size |
251 */ | 251 */ |
252 | 252 |
253 ctx->allocated = 8192 + (1 << (wbits + 2)) + (1 << (memlevel + 9)); | 253 ctx->allocated = 8192 + (1 << (wbits + 2)) + (1 << (memlevel + 9)); |
254 | 254 |
255 ngx_test_null(ctx->preallocated, ngx_palloc(r->pool, ctx->allocated), | 255 ngx_test_null(ctx->preallocated, ngx_palloc(r->pool, ctx->allocated), |