]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stick-tables: fix ref counter in table entry using multiple http tracksc.
authorEmeric Brun <ebrun@haproxy.com>
Wed, 10 Mar 2021 15:58:03 +0000 (16:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Mar 2021 13:14:44 +0000 (14:14 +0100)
commit362d25e50708adf2b273bf9ee04f6566f113815e
tree8e3f5a8921f1d9bf222349f85548bfdc01993553
parentc0ed91910a43020485c89662c0df1cf5fcd3d93a
BUG/MEDIUM: stick-tables: fix ref counter in table entry using multiple http tracksc.

Setting multiple http-request track-scX rules generates entries
which never expires.

If there was already an entry registered by a previous http rule
'stream_track_stkctr(&s->stkctr[rule->action], t, ts)' didn't
register the new 'ts' into the stkctr. And function is left
with no reference on 'ts' whereas refcount had been increased
by the '_get_entry'

The patch applies the same policy as the one showed on tcp track
rules and if there is successive rules the track counter keep the
first entry registered in the counter and nothing more is computed.

After validation this should be backported in all versions.
src/http_act.c