Mercurial > hg > nginx-quic
diff src/http/modules/ngx_http_gzip_filter.c @ 159:981e4af2a425
nginx-0.0.1-2003-10-24-20:10:38 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 24 Oct 2003 16:10:38 +0000 |
parents | d377ee423603 |
children | e7e094d34162 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_gzip_filter.c +++ b/src/http/modules/ngx_http_gzip_filter.c @@ -372,9 +372,9 @@ ngx_log_debug(r->connection->log, "DEFLA ctx->zstream.avail_in _ ctx->zstream.avail_out _ rc); ctx->in_hunk->pos = (char *) ctx->zstream.next_in; + ctx->out_hunk->last = (char *) ctx->zstream.next_out; if (ctx->zstream.avail_out == 0) { - ctx->out_hunk->last += conf->bufs.size; ngx_alloc_link_and_set_hunk(cl, ctx->out_hunk, r->pool, ngx_http_gzip_error(ctx)); *ctx->last_out = cl; @@ -382,7 +382,6 @@ ngx_log_debug(r->connection->log, "DEFLA ctx->redo = 1; } else { - ctx->out_hunk->last = (char *) ctx->zstream.next_out; ctx->redo = 0; if (ctx->flush == Z_SYNC_FLUSH) { @@ -503,7 +502,7 @@ static void *ngx_http_gzip_filter_alloc( ctx->free_mem += alloc; ctx->allocated -= alloc; -#if 0 +#if 1 ngx_log_debug(ctx->request->connection->log, "ALLOC: %d:%d:%d:%08X" _ items _ size _ alloc _ p); #endif