MEDIUM: session: automatically register the applet designated by the target
authorWilly Tarreau <w@1wt.eu>
Sun, 1 Dec 2013 11:25:52 +0000 (12:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Dec 2013 14:40:23 +0000 (15:40 +0100)
commit4384ddfc8479e5408d20deeb390a5e56e6c75127
tree952e4e1247fcdce920692c0e9ffda872bfd8a0cc
parent0a23bcb8bec454964bf64cfd85dfa923b66dd041
MEDIUM: session: automatically register the applet designated by the target

Some applet users don't need to initialize their applet, they just want
to route the traffic there just as if it were a server. Since applets
are now connected to from session.c, let's simply ensure that when
connecting, the applet in si->end matches the target, and allocate
one there if it's not already done. In case of error, we force the
status code to resource and connection so that it's clear that it
happens because of a memory shortage.
src/session.c