]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix 32-bit wrap in refresh_pattern min/max values.
authorAmos Jeffries <amosjeffries@squid-cache.org>
Fri, 13 Aug 2010 09:37:46 +0000 (03:37 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Fri, 13 Aug 2010 09:37:46 +0000 (03:37 -0600)
commita632ba718b926a6a3dc9b2c2a9576efe5be7bb07
tree95fd6e7c99b9d5e64b4ec246ae3919baaab4164e
parent95e785008cfde3ae4a0f830437dd768ce7afdb2e
Fix 32-bit wrap in refresh_pattern min/max values.

Attached patch limits the values to 1 year (arbitrary based on rumours
about good caching times). Checking for 32-bit wrap and setting the max
1 year limit instead of cutting them to zero.

The expected outcome of this is correct cache storage time extension
according to refresh_pattern documentation when people desperately set
min/max to > a million minutes. Instead of a silent always-stale verdict.
src/cache_cf.cc