MINOR: mux-quic: send one last time before release

Call qc_send() on qc_release(). This is mostly useful for application
protocol with a connection closing procedure. Most notably, this will be
useful to implement HTTP/3 GOAWAY emission.
This commit is contained in:
Amaury Denoyelle 2022-06-13 17:09:01 +02:00
parent c49d5d1a4b
commit a154dc0290

View File

@ -1601,6 +1601,11 @@ static void qc_release(struct qcc *qcc)
* procedure.
*/
qcc->app_ops->release(qcc->ctx);
/* useful if application protocol should emit some closing
* frames. For example HTTP/3 GOAWAY frame.
*/
qc_send(qcc);
}
else {
qcc_emit_cc_app(qcc, QC_ERR_NO_ERROR, 0);