Welcome! Log In Create A New Profile

Advanced

[nginx] Gzip, gunzip: flush pending data when incoming chain is ...

Maxim Dounin
October 30, 2013 08:08PM
details: http://hg.nginx.org/nginx/rev/c52a761a2029
branches:
changeset: 5432:c52a761a2029
user: Yichun Zhang <agentzh@gmail.com>
date: Mon Oct 28 15:01:36 2013 -0700
description:
Gzip, gunzip: flush pending data when incoming chain is NULL.

diffstat:

src/http/modules/ngx_http_gunzip_filter_module.c | 2 +-
src/http/modules/ngx_http_gzip_filter_module.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff --git a/src/http/modules/ngx_http_gunzip_filter_module.c b/src/http/modules/ngx_http_gunzip_filter_module.c
--- a/src/http/modules/ngx_http_gunzip_filter_module.c
+++ b/src/http/modules/ngx_http_gunzip_filter_module.c
@@ -199,7 +199,7 @@ ngx_http_gunzip_body_filter(ngx_http_req
}
}

- if (ctx->nomem) {
+ if (ctx->nomem || in == NULL) {

/* flush busy buffers */

diff --git a/src/http/modules/ngx_http_gzip_filter_module.c b/src/http/modules/ngx_http_gzip_filter_module.c
--- a/src/http/modules/ngx_http_gzip_filter_module.c
+++ b/src/http/modules/ngx_http_gzip_filter_module.c
@@ -372,7 +372,7 @@ ngx_http_gzip_body_filter(ngx_http_reque
r->connection->buffered |= NGX_HTTP_GZIP_BUFFERED;
}

- if (ctx->nomem) {
+ if (ctx->nomem || in == NULL) {

/* flush busy buffers */


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

[nginx] Gzip, gunzip: flush pending data when incoming chain is ...

Maxim Dounin 639 October 30, 2013 08:08PM



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

Online Users

Guests: 219
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