From: Tomas Mraz Date: Tue, 15 Aug 2023 18:15:53 +0000 (+0200) Subject: QUIC: Update ping deadline when we receive a packet X-Git-Tag: openssl-3.2.0-alpha1~183 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fd32a0eda994527668a1e19a29ca9c85b4a35d8;p=thirdparty%2Fopenssl.git QUIC: Update ping deadline when we receive a packet Reviewed-by: Matt Caswell Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/21713) --- diff --git a/ssl/quic/quic_channel.c b/ssl/quic/quic_channel.c index a3bc2591fb1..2d20f3743e3 100644 --- a/ssl/quic/quic_channel.c +++ b/ssl/quic/quic_channel.c @@ -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 */