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.
This commit is contained in:
Christopher Faulet 2024-06-04 19:01:18 +02:00
parent 9748df29ff
commit 6697e87ae5

View File

@ -3058,6 +3058,7 @@ static size_t qmux_strm_done_ff(struct stconn *sc)
goto end;
}
if (data)
data += sd->iobuf.offset;
total = qcs->qcc->app_ops->done_ff(qcs);