mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-12 05:01:30 +01:00
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:
parent
f1c659f3ae
commit
c0f5b19bc6
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user