Welcome! Log In Create A New Profile

Advanced

[nginx] Sub filter: flush buffers handling.

Maxim Dounin
July 25, 2013 08:00AM
details: http://hg.nginx.org/nginx/rev/819c5b53d8b5
branches:
changeset: 5286:819c5b53d8b5
user: Maxim Dounin <mdounin@mdounin.ru>
date: Thu Jul 25 14:54:47 2013 +0400
description:
Sub filter: flush buffers handling.

diffstat:

src/http/modules/ngx_http_sub_filter_module.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff --git a/src/http/modules/ngx_http_sub_filter_module.c b/src/http/modules/ngx_http_sub_filter_module.c
--- a/src/http/modules/ngx_http_sub_filter_module.c
+++ b/src/http/modules/ngx_http_sub_filter_module.c
@@ -369,7 +369,9 @@ ngx_http_sub_body_filter(ngx_http_reques
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) {
cl = ngx_chain_get_free_buf(r->pool, &ctx->free);
if (cl == NULL) {
@@ -387,6 +389,7 @@ ngx_http_sub_body_filter(ngx_http_reques
}

b->last_buf = ctx->buf->last_buf;
+ b->flush = ctx->buf->flush;
b->shadow = ctx->buf;

b->recycled = ctx->buf->recycled;

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Sub filter: flush buffers handling.

Maxim Dounin 848 July 25, 2013 08:00AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 168
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready