projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72cffaf
)
MINOR: cache: Consider invalid Age values as stale
author
Remi Tricot-Le Breton
<rlebreton@haproxy.com>
Thu, 3 Dec 2020 17:19:32 +0000
(18:19 +0100)
committer
William Lallemand
<wlallemand@haproxy.org>
Fri, 4 Dec 2020 09:21:56 +0000
(10:21 +0100)
Do not store responses that have an invalid age header (non numerical,
negative ...).
src/cache.c
patch
|
blob
|
history
diff --git
a/src/cache.c
b/src/cache.c
index
e0560e5
..
df6bd33
100644
(file)
--- a/
src/cache.c
+++ b/
src/cache.c
@@
-897,6
+897,8
@@
enum act_return http_action_store_cache(struct act_rule *rule, struct proxy *px,
if (unlikely(object->age > true_maxage))
goto out;
}
+ else
+ goto out;
http_remove_header(htx, &ctx);
}