Sub filter: flush buffers handling.
Maxim Dounin
9 years ago
368 | 368 | continue; |
369 | 369 | } |
370 | 370 | |
371 | if (ctx->buf->last_buf || ngx_buf_in_memory(ctx->buf)) { | |
371 | if (ctx->buf->last_buf || ctx->buf->flush | |
372 | || ngx_buf_in_memory(ctx->buf)) | |
373 | { | |
372 | 374 | if (b == NULL) { |
373 | 375 | cl = ngx_chain_get_free_buf(r->pool, &ctx->free); |
374 | 376 | if (cl == NULL) { |
386 | 388 | } |
387 | 389 | |
388 | 390 | b->last_buf = ctx->buf->last_buf; |
391 | b->flush = ctx->buf->flush; | |
389 | 392 | b->shadow = ctx->buf; |
390 | 393 | |
391 | 394 | b->recycled = ctx->buf->recycled; |