]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-quic: add comment
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 1 Feb 2022 09:16:05 +0000 (10:16 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 1 Feb 2022 09:56:43 +0000 (10:56 +0100)
Explain the qc_release_detached_streams function purpose and interface.
Most notably the return code which is the count of released streams.

src/mux_quic.c

index 22d39ef0bd116ec7c14a8bd1085349dc27bff1ea..52187097d3293e942ff3c52a51992c398c7a18bb 100644 (file)
@@ -339,6 +339,11 @@ static int qc_send(struct qcc *qcc)
        return ret;
 }
 
+/* Release all streams that are already marked as detached. This is only done
+ * if their TX buffers are empty or if a CONNECTION_CLOSE has been received.
+ *
+ * Return the number of released stream.
+ */
 static int qc_release_detached_streams(struct qcc *qcc)
 {
        struct eb64_node *node;