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.
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);