From: William Lallemand Date: Tue, 20 Nov 2012 16:11:13 +0000 (+0100) Subject: BUG/MINOR: compression: dynamic level increase X-Git-Tag: v1.5-dev13~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c71407657d32b973d4488c494834648e44fc99c4;p=thirdparty%2Fhaproxy.git BUG/MINOR: compression: dynamic level increase Using compression rate limit, the compression level wasn't taking care of the max compression level during a session because the test was done on the wrong variable. --- diff --git a/src/compression.c b/src/compression.c index 1df0f57a75..2dc893aa56 100644 --- a/src/compression.c +++ b/src/compression.c @@ -570,7 +570,7 @@ int deflate_flush(struct comp_ctx *comp_ctx, struct buffer *out, int flag) deflateParams(&comp_ctx->strm, comp_ctx->cur_lvl, Z_DEFAULT_STRATEGY); } - } else if (comp_ctx->cur_lvl < global.comp_rate_lim) { + } else if (comp_ctx->cur_lvl < global.tune.comp_maxlevel) { /* increase level */ comp_ctx->cur_lvl++ ; deflateParams(&comp_ctx->strm, comp_ctx->cur_lvl, Z_DEFAULT_STRATEGY);