From 6c837723bfffa9048cd9160cb53295872c9de476 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Wed, 15 Apr 2026 09:38:18 +0200 Subject: [PATCH] MINOR: mux-quic: improve documentation for qcs_attach_sc() Complete function doc for qcs_attach_sc() by using the proper terminology related to stream/stconn/sedesc. The purpose of this function should be clearer now. --- src/mux_quic.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/mux_quic.c b/src/mux_quic.c index ad2da8aab..a2cb8864a 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -952,16 +952,17 @@ void qcs_send_metadata(struct qcs *qcs) qcs->flags |= QC_SF_TXBUB_OOB; } -/* Instantiate a streamdesc instance for stream. This is necessary to - * transfer data after a new request reception. can be used to forward +/* Instantiate a stream and its associated stconn and sedesc. This is necessary + * to transfer data after a new request reception. can be used to forward * the first received request data. must be set if the whole request is * already received. * - * Note that if is already fully closed, no streamdesc is instantiated. - * This is useful if a RESET_STREAM was already emitted in response to a - * STOP_SENDING. + * This function is only used on frontend side. * - * Returns 0 on success else a negative error code. If stream is already fully + * Note that if is already fully closed, nothing is instantiated. This is + * useful if a RESET_STREAM was already emitted in response to a STOP_SENDING. + * + * Returns 0 on success else a negative error code. If is already fully * closed and nothing is performed, it is considered as a success case. */ int qcs_attach_sc(struct qcs *qcs, struct buffer *buf, char fin)