Klaus Demo nginx / 84d2ecf
Gzip: clearing of c->buffered if all data are flushed. This allows to finalize unfinished responses while still sending as much data as available. Maxim Dounin 9 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
367367 if (ngx_chain_add_copy(r->pool, &ctx->in, in) != NGX_OK) {
368368 goto failed;
369369 }
370
371 r->connection->buffered |= NGX_HTTP_GZIP_BUFFERED;
370372 }
371373
372374 if (ctx->nomem) {
619621 return NGX_ERROR;
620622 }
621623
622 r->connection->buffered |= NGX_HTTP_GZIP_BUFFERED;
623
624624 ctx->last_out = &ctx->out;
625625 ctx->crc32 = crc32(0L, Z_NULL, 0);
626626 ctx->flush = Z_NO_FLUSH;
852852 cl->next = NULL;
853853 *ctx->last_out = cl;
854854 ctx->last_out = &cl->next;
855
856 r->connection->buffered &= ~NGX_HTTP_GZIP_BUFFERED;
855857
856858 return NGX_OK;
857859 }