mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-08 03:13:49 +02:00
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:
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user