From: Christopher Faulet Date: Mon, 31 Oct 2016 10:22:37 +0000 (+0100) Subject: MINOR: filters: Remove backend filters attached to a stream only for HTTP streams X-Git-Tag: v1.7-dev6~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6062be1e1ac56cfc9f5fdd578b61d6ac72ca8c7;p=thirdparty%2Fhaproxy.git MINOR: filters: Remove backend filters attached to a stream only for HTTP streams Now, for TCP streams, backend filters are released when the stream is destroyed. But, for HTTP streams, these filters are released when the transaction analyze ends, in flt_end_analyze callback. --- diff --git a/src/filters.c b/src/filters.c index a1b36ba448..8c3485e10c 100644 --- a/src/filters.c +++ b/src/filters.c @@ -802,10 +802,11 @@ end: if (s->txn && (s->txn->flags & TX_WAIT_NEXT_RQ) && !channel_input_closed(&s->req)) { s->req.analysers = strm_li(s) ? strm_li(s)->analysers : 0; s->res.analysers = 0; + + /* Remove backend filters from the list */ + flt_stream_release(s, 1); } - /* Remove backend filters from the list */ - flt_stream_release(s, 1); } else if (ret) { /* Analyzer ends only for one channel. So wake up the stream to