mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
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.
This commit is contained in:
parent
e3a7d99062
commit
c71407657d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user