From: Emeric Brun Date: Thu, 23 Sep 2010 16:11:05 +0000 (+0200) Subject: [BUG] stick table entries expire on counters updates/read or show table, even if... X-Git-Tag: v1.5-dev8~393 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c89a57284ad8249dffe76a6cff47e3111ab5246a;p=thirdparty%2Fhaproxy.git [BUG] stick table entries expire on counters updates/read or show table, even if there is no "expire" parameter --- diff --git a/include/proto/stick_table.h b/include/proto/stick_table.h index 583e32acd1..ce7ea1df4f 100644 --- a/include/proto/stick_table.h +++ b/include/proto/stick_table.h @@ -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); }