Mercurial > hg > nginx-vendor-1-0
comparison src/http/modules/ngx_http_gzip_filter_module.c @ 138:8e6d4d96ec4c NGINX_0_3_16
nginx 0.3.16
*) Feature: the ngx_http_map_module.
*) Feature: the "types_hash_max_size" and "types_hash_bucket_size"
directives.
*) Feature: the "ssi_value_length" directive.
*) Feature: the "worker_rlimit_core" directive.
*) Workaround: the connection number in logs was always 1 if nginx was
built by the icc 8.1 or 9.0 compilers with optimization for
Pentium 4.
*) Bugfix: the "config timefmt" SSI command set incorrect time format.
*) Bugfix: nginx did not close connection to IMAP/POP3 backend for the
SSL connections; bug appeared in 0.3.13.
Thanks to Rob Mueller.
*) Bugfix: segmentation fault may occurred in at SSL shutdown; bug
appeared in 0.3.13.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 16 Dec 2005 00:00:00 +0300 |
parents | 91372f004adf |
children | 36af50a5582d |
comparison
equal
deleted
inserted
replaced
137:768f51dd150b | 138:8e6d4d96ec4c |
---|---|
20 ngx_bufs_t bufs; | 20 ngx_bufs_t bufs; |
21 | 21 |
22 ngx_uint_t http_version; | 22 ngx_uint_t http_version; |
23 ngx_uint_t proxied; | 23 ngx_uint_t proxied; |
24 | 24 |
25 int level; | 25 ngx_int_t level; |
26 size_t wbits; | 26 size_t wbits; |
27 size_t memlevel; | 27 size_t memlevel; |
28 ssize_t min_length; | 28 ssize_t min_length; |
29 } ngx_http_gzip_conf_t; | 29 } ngx_http_gzip_conf_t; |
30 | 30 |
507 | 507 |
508 ctx->zstream.zalloc = ngx_http_gzip_filter_alloc; | 508 ctx->zstream.zalloc = ngx_http_gzip_filter_alloc; |
509 ctx->zstream.zfree = ngx_http_gzip_filter_free; | 509 ctx->zstream.zfree = ngx_http_gzip_filter_free; |
510 ctx->zstream.opaque = ctx; | 510 ctx->zstream.opaque = ctx; |
511 | 511 |
512 rc = deflateInit2(&ctx->zstream, conf->level, Z_DEFLATED, | 512 rc = deflateInit2(&ctx->zstream, (int) conf->level, Z_DEFLATED, |
513 -wbits, memlevel, Z_DEFAULT_STRATEGY); | 513 -wbits, memlevel, Z_DEFAULT_STRATEGY); |
514 | 514 |
515 if (rc != Z_OK) { | 515 if (rc != Z_OK) { |
516 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, | 516 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, |
517 "deflateInit2() failed: %d", rc); | 517 "deflateInit2() failed: %d", rc); |