MINOR: stream: Don't destroy conn-streams but detach app and endp

Don't call cs_destroy() anymore when a stream is released. Instead the
endpoint and the app are detached from the conn-stream.
This commit is contained in:
Christopher Faulet 2022-01-06 08:45:51 +01:00
parent c36de9dc93
commit 14fd99a20c

View File

@ -717,8 +717,10 @@ static void stream_free(struct stream *s)
must_free_sess = objt_appctx(sess->origin) && sess->origin == s->csf->end;
/* FIXME: ATTENTION, si CSF est librérer avant, ça plante !!!! */
cs_destroy(s->csb);
cs_destroy(s->csf);
cs_detach_endp(s->csb);
cs_detach_endp(s->csf);
cs_detach_app(s->csb);
cs_detach_app(s->csf);
if (must_free_sess) {
sess->origin = NULL;