From: Christopher Faulet Date: Tue, 4 Jun 2024 17:01:18 +0000 (+0200) Subject: MINOR: mux-quic: Don't send an emtpy H3 DATA frame during zero-copy forwarding X-Git-Tag: v3.1-dev1~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6697e87ae5e1f569dc87cf690b5ecfc049c4aab0;p=thirdparty%2Fhaproxy.git MINOR: mux-quic: Don't send an emtpy H3 DATA frame during zero-copy forwarding It may only happens when there is no data to forward but a last stream frame must be sent with the FIN bit. It is not invalid, but it is useless to send an empty H3 DATA frame in that case. --- diff --git a/src/mux_quic.c b/src/mux_quic.c index 8272b93da7..97cfb27ce0 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -3058,7 +3058,8 @@ static size_t qmux_strm_done_ff(struct stconn *sc) goto end; } - data += sd->iobuf.offset; + if (data) + data += sd->iobuf.offset; total = qcs->qcc->app_ops->done_ff(qcs); if (data || qcs->flags & QC_SF_FIN_STREAM)