mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
[BUG] stick table entries expire on counters updates/read or show table, even if there is no "expire" parameter
This commit is contained in:
parent
fbce6d0215
commit
c89a57284a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue