]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-quic: improve documentation for qcs_attach_sc()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 15 Apr 2026 07:38:18 +0000 (09:38 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 15 Apr 2026 12:34:13 +0000 (14:34 +0200)
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

index ad2da8aabe47555cdecc5cacb1216fc2cba29640..a2cb8864a16447600d8d884b1551aff6d3ab9f93 100644 (file)
@@ -952,16 +952,17 @@ void qcs_send_metadata(struct qcs *qcs)
        qcs->flags |= QC_SF_TXBUB_OOB;
 }
 
-/* Instantiate a streamdesc instance for <qcs> stream. This is necessary to
- * transfer data after a new request reception. <buf> 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. <buf> can be used to forward
  * the first received request data. <fin> must be set if the whole request is
  * already received.
  *
- * Note that if <qcs> 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 <qcs> 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 <qcs> 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)