mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-01 19:20:59 +02:00
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.
This commit is contained in:
parent
1ef74fc7ce
commit
5ddba59a02
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user