]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: quic: No more used handshake output buffer
authorFrédéric Lécaille <flecaille@haproxy.com>
Sat, 21 May 2022 20:36:08 +0000 (22:36 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 30 May 2022 07:59:26 +0000 (09:59 +0200)
->obuf quic_conn struct member is no more used.

include/haproxy/xprt_quic-t.h
src/xprt_quic.c

index a975b17825991d7aad2bb26a23eaa24868333b72..bb7569f525ea7fd5cf72a76ad80a3f2c57bf7531 100644 (file)
@@ -727,11 +727,6 @@ struct quic_conn {
 
        /* Used only to reach the tasklet for the I/O handler from this quic_conn object. */
        struct connection *conn;
-       /* Output buffer used during the handshakes. */
-       struct {
-               unsigned char data[QUIC_PACKET_MAXLEN];
-               unsigned char *pos;
-       } obuf;
 
        struct {
                /* The remaining frames to send. */
index 60051d83852553ffacc886cc37c9cb6cb697660f..6e75501cbcb45421f814ff25158609e47d56bd50 100644 (file)
@@ -4327,9 +4327,6 @@ static struct quic_conn *qc_new_conn(unsigned int version, int ipv4,
        }
        qc->mux_state = QC_MUX_NULL;
 
-       /* Initialize the output buffer */
-       qc->obuf.pos = qc->obuf.data;
-
        icid = new_quic_cid(&qc->cids, qc, 0);
        if (!icid) {
                TRACE_PROTO("Could not allocate a new connection ID", QUIC_EV_CONN_INIT, qc);