]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stream: Don't destroy conn-streams but detach app and endp
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Jan 2022 07:45:51 +0000 (08:45 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Feb 2022 10:00:03 +0000 (11:00 +0100)
Don't call cs_destroy() anymore when a stream is released. Instead the
endpoint and the app are detached from the conn-stream.

src/stream.c

index 9dbf96537467cc42864ba85f79a7ebeb7d4c1eaf..935fce42ddb75901e1fc933e114585e9ca226c05 100644 (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;