]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC: Update ping deadline when we receive a packet
authorTomas Mraz <tomas@openssl.org>
Tue, 15 Aug 2023 18:15:53 +0000 (20:15 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 22 Aug 2023 10:31:46 +0000 (12:31 +0200)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21713)

ssl/quic/quic_channel.c

index a3bc2591fb1f953c228785f4478a9c229274fb9d..2d20f3743e384c42c3f8e26e7da8c73f90726115 100644 (file)
@@ -2028,8 +2028,10 @@ static int ch_rx(QUIC_CHANNEL *ch)
             ossl_quic_tx_packetiser_record_received_closing_bytes(
                     ch->txp, ch->qrx_pkt->hdr->len);
 
-        if (!handled_any)
+        if (!handled_any) {
             ch_update_idle(ch);
+            ch_update_ping_deadline(ch);
+        }
 
         ch_rx_handle_packet(ch); /* best effort */