Welcome! Log In Create A New Profile

Advanced

Re: Support for 3rd party zlib libraries

Yichun Zhang (agentzh)
July 29, 2014 07:08PM
Hello!

On Tue, Jul 29, 2014 at 3:47 PM, Richard Stanway wrote:
> Thank you for the patch. This solves the issue with streamed responses,
> however when the "if (r->headers_out.content_length_n > 0)" branch is taken,
> eg with static content, I still receive the 2nd alert type below.

Oh, we should probably skip that condition altogether for IPP zlib.
The formula is accurate and was copied directly from the IPP zlib
source code. Try this additional patch:

diff -r 2a54efe7a747 src/http/modules/ngx_http_gzip_filter_module.c
--- a/src/http/modules/ngx_http_gzip_filter_module.c Tue Jul 29
14:19:37 2014 -0700
+++ b/src/http/modules/ngx_http_gzip_filter_module.c Tue Jul 29
16:06:03 2014 -0700
@@ -492,6 +492,7 @@ ngx_http_gzip_filter_memory(ngx_http_req
wbits = conf->wbits;
memlevel = conf->memlevel;

+#if !NGX_HAVE_ZLIB_IPP
if (r->headers_out.content_length_n > 0) {

/* the actual zlib window size is smaller by 262 bytes */
@@ -505,6 +506,7 @@ ngx_http_gzip_filter_memory(ngx_http_req
memlevel = 1;
}
}
+#endif

ctx->wbits = wbits;
ctx->memlevel = memlevel;

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

Support for 3rd party zlib libraries

Richard Stanway July 29, 2014 04:48PM

Re: Support for 3rd party zlib libraries

Yichun Zhang (agentzh) July 29, 2014 05:24PM

Re: Support for 3rd party zlib libraries

Richard Stanway July 29, 2014 06:48PM

Re: Support for 3rd party zlib libraries

Yichun Zhang (agentzh) July 29, 2014 07:08PM

Re: Support for 3rd party zlib libraries

Piotr Sikora July 29, 2014 07:10PM

Re: Support for 3rd party zlib libraries

Yichun Zhang (agentzh) July 29, 2014 07:16PM

Re: Support for 3rd party zlib libraries

Maxim Dounin July 29, 2014 08:06PM

Re: Support for 3rd party zlib libraries

Maxim Dounin July 29, 2014 10:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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