# HG changeset patch # User Yichun Zhang # Date 1382997696 25200 # Node ID c52a761a202900cca3b31bf490c51a18a5e5e703 # Parent 91bd62a9627eb80c94c88ba41d780aac40e025d7 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 --- 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 */