mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-18 09:56:49 +02:00
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.
This commit is contained in:
@@ -188,7 +188,7 @@ static inline void si_release_endpoint(struct stream_interface *si)
|
||||
else if ((appctx = objt_appctx(si->end))) {
|
||||
if (appctx->applet->release && !si_state_in(si->state, SI_SB_DIS|SI_SB_CLO))
|
||||
appctx->applet->release(appctx);
|
||||
appctx_free(appctx); /* we share the connection pool */
|
||||
appctx_free(appctx);
|
||||
} else if ((conn = objt_conn(si->end))) {
|
||||
conn_stop_tracking(conn);
|
||||
conn_full_close(conn);
|
||||
|
||||
Reference in New Issue
Block a user