From 5ddba59a027cee4f57b8ca3fc88285f43a6194ab Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 26 Apr 2026 22:01:59 +0200 Subject: [PATCH] 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. --- src/http_ana.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: