Skip to content

Commit

Permalink
MINOR: mux-quic: Don't send an emtpy H3 DATA frame during zero-copy f…
Browse files Browse the repository at this point in the history
…orwarding

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.
  • Loading branch information
capflam committed Jun 5, 2024
1 parent 9748df2 commit 6697e87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mux_quic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6697e87

Please sign in to comment.