mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 23:56:57 +02:00
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.
This commit is contained in:
parent
4117904ffd
commit
c6062be1e1
@ -802,11 +802,12 @@ flt_end_analyze(struct stream *s, struct channel *chn, unsigned int an_bit)
|
|||||||
if (s->txn && (s->txn->flags & TX_WAIT_NEXT_RQ) && !channel_input_closed(&s->req)) {
|
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->req.analysers = strm_li(s) ? strm_li(s)->analysers : 0;
|
||||||
s->res.analysers = 0;
|
s->res.analysers = 0;
|
||||||
}
|
|
||||||
|
|
||||||
/* Remove backend filters from the list */
|
/* Remove backend filters from the list */
|
||||||
flt_stream_release(s, 1);
|
flt_stream_release(s, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
else if (ret) {
|
else if (ret) {
|
||||||
/* Analyzer ends only for one channel. So wake up the stream to
|
/* Analyzer ends only for one channel. So wake up the stream to
|
||||||
* be sure to process it for the other side as soon as
|
* be sure to process it for the other side as soon as
|
||||||
|
Loading…
Reference in New Issue
Block a user