]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Do not drop packets with RESET_STREAM frames
authorFrédéric Lécaille <flecaille@haproxy.com>
Sun, 29 May 2022 09:48:58 +0000 (11:48 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 30 May 2022 07:59:26 +0000 (09:59 +0200)
If the connection client timeout has expired, the mux is released.
If the client decides to initiate a new request, we send a STOP_SENDING
frame. Then, the client endessly sends a RESET_STREAM frame.

At this time, we simulate the fact that we support the RESET_STREAM frame
thanks to this ridiculously minimalistic patch.

src/xprt_quic.c

index 115339eeeceaac7732e13b3cb87e44508759ce26..dbadfbe26220c9b8978a84c34d960724b48137fb 100644 (file)
@@ -2454,7 +2454,11 @@ static int qc_parse_pkt_frms(struct quic_rx_packet *pkt, struct ssl_sock_ctx *ct
                        }
                        break;
                }
+               case QUIC_FT_RESET_STREAM:
+                   /* TODO: handle this frame at STREAM level */
+                   break;
                case QUIC_FT_STOP_SENDING:
+                   /* TODO: handle this frame at STREAM level */
                        break;
                case QUIC_FT_CRYPTO:
                {