]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stick-tables: Stop if stktable_trash_oldest() fails.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 14 Oct 2025 16:51:32 +0000 (18:51 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 20 Oct 2025 13:04:47 +0000 (15:04 +0200)
commit7854331c718bc8dcd6ed9cd3bc3c3932fdc9945b
tree4037774b799ad33b36ebc332ab5e8693dbf99c2a
parentd5562e31bd97e43cba3814e394070ebf34332e17
MEDIUM: stick-tables: Stop if stktable_trash_oldest() fails.

In stksess_new(), if the table is full, we call stktable_trash_oldest()
to remove a few entries so that we have some room for a new one.
It is unlikely, but possible, that stktable_trash_oldest() will fail. If
so, just give up and do not add the new entry, instead of adding it
anyway.
Give up if stktable_trash_oldest() fails to free any entry
src/stick_table.c