From: Christopher Faulet Date: Thu, 15 Oct 2026 09:48:50 +0000 (+0000) Subject: BUG/MINOR: mux-pt: report send errors in termination events from done_ff() X-Git-Url: https://git.kaiwu.me/web/http/static/%7B@url%7D?a=commitdiff_plain;h=dd7eb24a518293c72ccf45e220c7e4ad85d62c0f;p=haproxy.git BUG/MINOR: mux-pt: report send errors in termination events from done_ff() When the zero-copy forwarding is used with splicing, the data received by the producer are immediately sent by the consumer through mux_pt_done_ff(). If this send fails, the error is reported to the sedesc but, unlike in mux_pt_snd_buf() and mux_pt_resume_fastfwd(), no "snd_err" termination event is reported for the mux connection. So the term_events sample fetch misses it and only shows the receive error detected later by the fd/xprt layer, which makes the analysis of aborted spliced transfers misleading. The H1 mux reports it in h1_done_ff(). This was introduced with the commit 9cbc3229e ("MINOR: tevt/mux-pt: Add support for termination event logs") in 3.2-dev5. This patch must be backported as far as 3.2. --- diff --git a/src/mux_pt.c b/src/mux_pt.c index 7bfae0b0e..282f1105d 100644 --- a/src/mux_pt.c +++ b/src/mux_pt.c @@ -646,6 +646,7 @@ static size_t mux_pt_done_ff(struct stconn *sc) out: if (conn->flags & CO_FL_ERROR) { + mux_pt_report_term_evt(ctx, muxc_tevt_type_snd_err); if (conn_xprt_read0_pending(conn)) se_fl_set(ctx->sd, SE_FL_EOS); se_fl_set_error(ctx->sd);