MINOR: cache: Use the <kip> value to check too big objects

When an object should be cache, to check if it is too big or not, the
<kip> value is now used instead of the HTX extra field.
This commit is contained in:
Christopher Faulet 2025-09-18 09:04:02 +02:00
parent f1c659f3ae
commit c0f5b19bc6

View File

@ -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