diff --git a/src/quic_conn.c b/src/quic_conn.c index 2cb9fde9f..90c1a1db0 100644 --- a/src/quic_conn.c +++ b/src/quic_conn.c @@ -1047,7 +1047,7 @@ struct task *qc_process_timer(struct task *task, void *ctx, unsigned int state) /* Allocate a new QUIC connection with as QUIC version. * boolean is set to 1 for IPv4 connection, 0 for IPv6. is set to 1 - * for QUIC servers (or haproxy listeners). + * for QUIC servers (or haproxy listeners), 0 for QUIC clients. * is the destination connection ID, is the source connection ID. * This latter CID as the same value on the wire as the one for * which is the first CID of this connection but a different internal @@ -1060,6 +1060,9 @@ struct task *qc_process_timer(struct task *task, void *ctx, unsigned int state) * into the Retry token sent to the client before instantiated this connection. * Endpoints addresses are specified via and . * Returns the connection if succeeded, NULL if not. + * For QUIC clients, , , , must be null, + * and value must be 0. This is the responsability of the caller to ensure + * this is the case. */ struct quic_conn *qc_new_conn(const struct quic_version *qv, int ipv4, struct quic_cid *dcid, struct quic_cid *scid,