]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: applet: make appctx use their own pool
authorWilly Tarreau <w@1wt.eu>
Thu, 18 Jul 2019 08:41:36 +0000 (10:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Jul 2019 08:45:08 +0000 (10:45 +0200)
commit8280ea97a013ea7fd265da8d8c2e83e2e1324ef4
treeffe62061c52a8c3bdc6105aa65fb412ce46cd6a5
parent45726fd4588d9075632cb09c9cd093d7a67c1159
MINOR: applet: make appctx use their own pool

A long time ago, applets were seen as an alternative to connections,
and since their respective sizes were roughly equal it appeared wise
to share the same pool. Nowadays, connections got significantly larger
but applets are not that often used, except for the cache. However
applets are mostly complementary and not alternatives anymore, as
it's very possible not to have a back connection or to share one with
other streams.

The connections will soon lose their addresses and their size will
shrink so much that appctx won't fit anymore. Given that the old
benefits of sharing these pools have long disappeared, let's stop
doing this and have a dedicated pool for appctx.
include/proto/applet.h
include/proto/stream_interface.h
src/applet.c