Mercurial > hg > nginx
changeset 5432:c52a761a2029
Gzip, gunzip: flush pending data when incoming chain is NULL.
author | Yichun Zhang <agentzh@gmail.com> |
---|---|
date | Mon, 28 Oct 2013 15:01:36 -0700 |
parents | 91bd62a9627e |
children | c37f34bda5ea |
files | src/http/modules/ngx_http_gunzip_filter_module.c src/http/modules/ngx_http_gzip_filter_module.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_gunzip_filter_module.c Thu Oct 31 04:00:37 2013 +0400 +++ b/src/http/modules/ngx_http_gunzip_filter_module.c Mon Oct 28 15:01:36 2013 -0700 @@ -199,7 +199,7 @@ } } - if (ctx->nomem) { + if (ctx->nomem || in == NULL) { /* flush busy buffers */
--- a/src/http/modules/ngx_http_gzip_filter_module.c Thu Oct 31 04:00:37 2013 +0400 +++ b/src/http/modules/ngx_http_gzip_filter_module.c Mon Oct 28 15:01:36 2013 -0700 @@ -372,7 +372,7 @@ r->connection->buffered |= NGX_HTTP_GZIP_BUFFERED; } - if (ctx->nomem) { + if (ctx->nomem || in == NULL) { /* flush busy buffers */