mirror of
https://github.com/nginx/nginx.git
synced 2025-07-26 07:06:55 +08:00
Sub filter: flush buffers handling.
This commit is contained in:
parent
8d568c7ae0
commit
68fab7c8c4
@ -369,7 +369,9 @@ ngx_http_sub_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->buf->last_buf || ngx_buf_in_memory(ctx->buf)) {
|
if (ctx->buf->last_buf || ctx->buf->flush
|
||||||
|
|| ngx_buf_in_memory(ctx->buf))
|
||||||
|
{
|
||||||
if (b == NULL) {
|
if (b == NULL) {
|
||||||
cl = ngx_chain_get_free_buf(r->pool, &ctx->free);
|
cl = ngx_chain_get_free_buf(r->pool, &ctx->free);
|
||||||
if (cl == NULL) {
|
if (cl == NULL) {
|
||||||
@ -387,6 +389,7 @@ ngx_http_sub_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
|
|||||||
}
|
}
|
||||||
|
|
||||||
b->last_buf = ctx->buf->last_buf;
|
b->last_buf = ctx->buf->last_buf;
|
||||||
|
b->flush = ctx->buf->flush;
|
||||||
b->shadow = ctx->buf;
|
b->shadow = ctx->buf;
|
||||||
|
|
||||||
b->recycled = ctx->buf->recycled;
|
b->recycled = ctx->buf->recycled;
|
||||||
|
Loading…
Reference in New Issue
Block a user