From: Christopher Faulet Date: Thu, 18 Sep 2025 07:04:02 +0000 (+0200) Subject: MINOR: cache: Use the value to check too big objects X-Git-Tag: v3.3-dev10~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c0f5b19bc6eaaaa828d90f7cd78fae8a2b218dfe;p=thirdparty%2Fhaproxy.git MINOR: cache: Use the value to check too big objects When an object should be cache, to check if it is too big or not, the value is now used instead of the HTX extra field. --- diff --git a/src/cache.c b/src/cache.c index 0854b86e3..9f83c9da5 100644 --- a/src/cache.c +++ b/src/cache.c @@ -1270,7 +1270,7 @@ enum act_return http_action_store_cache(struct act_rule *rule, struct proxy *px, /* Do not cache too big objects. */ if ((msg->flags & HTTP_MSGF_CNT_LEN) && shctx->max_obj_size > 0 && - htx->data + htx->extra > shctx->max_obj_size) + s->scb->sedesc->kip > shctx->max_obj_size) goto out; /* Only a subset of headers are supported in our Vary implementation. If