From: Willy Tarreau Date: Sun, 26 Apr 2026 20:01:59 +0000 (+0200) Subject: BUG/MINOR: http_ana: use scf to report term_evts in http_wait_for_request() X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=5ddba59a027cee4f57b8ca3fc88285f43a6194ab;p=thirdparty%2Fhaproxy.git BUG/MINOR: http_ana: use scf to report term_evts in http_wait_for_request() http_wait_for_request() improperly reports term events on the scb instead of scf, causing some request parsing failures to possibly be reported as response errors. This was introduced in 3.2 with commit 2dc02f75b1 ("MEDIUM: tevt/stconn/stream: Add dedicated termination events for stream location") so it must be backported there. --- diff --git a/src/http_ana.c b/src/http_ana.c index 9087dfa9e..533613fd4 100644 --- a/src/http_ana.c +++ b/src/http_ana.c @@ -348,7 +348,7 @@ int http_wait_for_request(struct stream *s, struct channel *req, int an_bit) _HA_ATOMIC_INC(&sess->fe_tgcounters->internal_errors); if (sess->li_tgcounters) _HA_ATOMIC_INC(&sess->li_tgcounters->internal_errors); - stream_report_term_evt(s->scb, strm_tevt_type_internal_err); + stream_report_term_evt(s->scf, strm_tevt_type_internal_err); goto return_prx_cond; return_bad_req: @@ -357,7 +357,7 @@ int http_wait_for_request(struct stream *s, struct channel *req, int an_bit) _HA_ATOMIC_INC(&sess->fe_tgcounters->failed_req); if (sess->li_tgcounters) _HA_ATOMIC_INC(&sess->li_tgcounters->failed_req); - stream_report_term_evt(s->scb, strm_tevt_type_proto_err); + stream_report_term_evt(s->scf, strm_tevt_type_proto_err); /* fall through */ return_prx_cond: