MINOR: mux-quic: remove the now unneeded conn_stream from the qcs

Since we always have a valid endpoint we can safely use it to access
the conn_stream and stop using qcs->cs. That's one less pointer to
care about.
This commit is contained in:
Willy Tarreau
2022-05-10 15:46:10 +02:00
parent b57669e6a4
commit 01c2a4a86f
4 changed files with 8 additions and 16 deletions

View File

@@ -95,7 +95,6 @@ struct qcc {
struct qcs {
struct qcc *qcc;
struct conn_stream *cs;
struct cs_endpoint *endp;
uint32_t flags; /* QC_SF_* */
void *ctx; /* app-ops context */

View File

@@ -91,15 +91,11 @@ static inline int qcc_install_app_ops(struct qcc *qcc,
static inline struct conn_stream *qc_attach_cs(struct qcs *qcs, struct buffer *buf)
{
struct conn_stream *cs;
cs = cs_new_from_mux(qcs->endp, qcs->qcc->conn->owner, buf);
if (!cs)
if (!cs_new_from_mux(qcs->endp, qcs->qcc->conn->owner, buf))
return NULL;
qcs->cs = cs;
++qcs->qcc->nb_cs;
return cs;
++qcs->qcc->nb_cs;
return qcs->endp->cs;
}
#endif /* USE_QUIC */