This function does not release the applet but only call the applet release
callback. It is equivalent to cs_conn_shut() but for applets. Thus the
function is renamed cs_applet_shut().
void cs_detach_app(struct conn_stream *cs);
struct appctx *cs_applet_create(struct conn_stream *cs, struct applet *app);
-void cs_applet_release(struct conn_stream *cs);
+void cs_applet_shut(struct conn_stream *cs);
/* Returns the endpoint target without any control */
static inline void *__cs_endp_target(const struct conn_stream *cs)
struct appctx *appctx = __cs_appctx(cs);
cs->endp->flags |= CS_EP_ORPHAN;
- cs_applet_release(cs);
+ cs_applet_shut(cs);
appctx_free(appctx);
cs->endp = NULL;
}
}
/* call the applet's release function if any. Needs to be called upon close() */
-void cs_applet_release(struct conn_stream *cs)
+void cs_applet_shut(struct conn_stream *cs)
{
struct appctx *appctx = __cs_appctx(cs);
return;
if (cs_oc(cs)->flags & CF_SHUTW) {
- cs_applet_release(cs);
+ cs_applet_shut(cs);
cs->state = CS_ST_DIS;
__cs_strm(cs)->conn_exp = TICK_ETERNITY;
}
case CS_ST_QUE:
case CS_ST_TAR:
/* Note that none of these states may happen with applets */
- cs_applet_release(cs);
+ cs_applet_shut(cs);
cs->state = CS_ST_DIS;
/* fall through */
default: