MINOR: mux-quic: check quic-conn return code on Tx

Inspect return code of qc_send_mux(). If quic-conn layer reports an
error, this will interrupt the current emission process.

This should be backported up to 2.6.
This commit is contained in:
Amaury Denoyelle 2022-09-26 15:02:31 +02:00
parent 2ed840015f
commit 036cc5d880
1 changed files with 2 additions and 1 deletions

View File

@ -1399,7 +1399,8 @@ static int qc_send_frames(struct qcc *qcc, struct list *frms)
LIST_INIT(&qcc->send_retry_list);
qc_send_mux(qcc->conn->handle.qc, frms);
if (!qc_send_mux(qcc->conn->handle.qc, frms))
goto err;
/* If there is frames left at this stage, transport layer is blocked.
* Subscribe on it to retry later.