]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: mux-quic: remove unused QC_CF_CC_RECV
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 6 Apr 2022 13:50:04 +0000 (15:50 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 7 Apr 2022 08:10:23 +0000 (10:10 +0200)
This flag was used to notify the MUX about a CONNECTION_CLOSE frame
reception. It is now unused on the MUX side and can be removed. A new
mechanism to detect quic-conn closing will be soon implemented.

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

index ab2b952af9da65fcb54751c8c8fbd3dffc462276..61ff95a3bf60290be25eb92d0bc2449e6e5335d4 100644 (file)
@@ -23,8 +23,7 @@ enum qcs_type {
        QCS_MAX_TYPES
 };
 
-#define QC_CF_CC_RECV   0x00000001
-#define QC_CF_BLK_MFCTL 0x00000002 /* sending blocked due to connection flow-control */
+#define QC_CF_BLK_MFCTL 0x00000001 /* sending blocked due to connection flow-control */
 
 struct qcc {
        struct connection *conn;
index a1fb28364d579fcde0266ba1b0f611e1c5e79f00..8757d9db3116567324f04bccca533d89bc48d302 100644 (file)
@@ -2591,11 +2591,6 @@ static int qc_parse_pkt_frms(struct quic_rx_packet *pkt, struct ssl_sock_ctx *ct
                                qc_idle_timer_do_rearm(qc);
                                qc->flags |= QUIC_FL_CONN_DRAINING|QUIC_FL_CONN_IMMEDIATE_CLOSE;
                        }
-                       /* warn the mux to close the connection */
-                       if (qc->mux_state == QC_MUX_READY) {
-                               qc->qcc->flags |= QC_CF_CC_RECV;
-                               tasklet_wakeup(qc->qcc->wait_event.tasklet);
-                       }
                        break;
                case QUIC_FT_HANDSHAKE_DONE:
                        if (qc_is_listener(ctx->qc))