]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] stick table entries expire on counters updates/read or show table, even if...
authorEmeric Brun <ebrun@exceliance.fr>
Thu, 23 Sep 2010 16:11:05 +0000 (18:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Nov 2010 08:28:18 +0000 (09:28 +0100)
include/proto/stick_table.h

index 583e32acd1833aec71c20cd621139efdd9b442c8..ce7ea1df4fe2e5c047073fa35ae95de786ec11c6 100644 (file)
@@ -128,7 +128,7 @@ static inline void *stktable_data_ptr(struct stktable *t, struct stksess *ts, in
 /* kill an entry if it's expired and its ref_cnt is zero */
 static inline void stksess_kill_if_expired(struct stktable *t, struct stksess *ts)
 {
-       if (tick_is_expired(ts->expire, now_ms))
+       if (t->expire != TICK_ETERNITY && tick_is_expired(ts->expire, now_ms))
                stksess_kill(t, ts);
 }