mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 22:31:06 +01:00
BUG/MINOR: quic: flag conn with CO_FL_FDLESS on backend side
Connection struct defines an handle which can point to either a FD or a quic_conn. On the latter case, CO_FL_FDLESS must be set. This is already the case on frontend side. This patch fixes QUIC backend support. Before setting connection handle member to a quic_conn instance, ensure that CO_FL_FDLESS flag is set on the connection. Prior to this patch, crash can occur in "show sess all". No need to backport.
This commit is contained in:
parent
cd2962ee64
commit
b2664d4450
@ -169,7 +169,7 @@ static int qc_conn_init(struct connection *conn, void **xprt_ctx)
|
|||||||
|
|
||||||
quic_cid_register_seq_num(conn_id, qc);
|
quic_cid_register_seq_num(conn_id, qc);
|
||||||
|
|
||||||
conn->flags |= CO_FL_SSL_WAIT_HS | CO_FL_WAIT_L6_CONN;
|
conn->flags |= CO_FL_SSL_WAIT_HS | CO_FL_WAIT_L6_CONN | CO_FL_FDLESS;
|
||||||
conn->handle.qc = qc;
|
conn->handle.qc = qc;
|
||||||
qc->conn = conn;
|
qc->conn = conn;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user