commit | 3d3fa2adc6461941219f5e49935a0f1e6e4ea393 | [log] [tgz] |
---|---|---|
author | Yichun Zhang <agentzh@gmail.com> | Mon Oct 28 15:01:36 2013 -0700 |
committer | Yichun Zhang <agentzh@gmail.com> | Mon Oct 28 15:01:36 2013 -0700 |
tree | 3eb0244c664e23cfa97c059260fc21a410530bed | |
parent | 0eee3b0bc5ff2d62d38488bae1e67172c868d0f7 [diff] |
Gzip, gunzip: flush pending data when incoming chain is NULL.
diff --git a/src/http/modules/ngx_http_gunzip_filter_module.c b/src/http/modules/ngx_http_gunzip_filter_module.c index d4e41e4..c2d504e 100644 --- a/src/http/modules/ngx_http_gunzip_filter_module.c +++ b/src/http/modules/ngx_http_gunzip_filter_module.c
@@ -199,7 +199,7 @@ } } - 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 index 837b0bc..ea1f1d0 100644 --- a/src/http/modules/ngx_http_gzip_filter_module.c +++ b/src/http/modules/ngx_http_gzip_filter_module.c
@@ -372,7 +372,7 @@ r->connection->buffered |= NGX_HTTP_GZIP_BUFFERED; } - if (ctx->nomem) { + if (ctx->nomem || in == NULL) { /* flush busy buffers */