From 27195689a8e123be356209d90000f49def13a0b9 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 13 Jun 2023 13:12:08 +0100 Subject: [PATCH] Before we do anything the ping deadline is infinite Needed for tserver so that it the deadline isn't immediate before we've accepted a connection. Reviewed-by: Tomas Mraz Reviewed-by: Hugo Landau Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/21204) --- ssl/quic/quic_channel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssl/quic/quic_channel.c b/ssl/quic/quic_channel.c index 53d86eac98871..dc16d69a8d598 100644 --- a/ssl/quic/quic_channel.c +++ b/ssl/quic/quic_channel.c @@ -135,6 +135,8 @@ static int ch_init(QUIC_CHANNEL *ch) qtx_args.mdpl = QUIC_MIN_INITIAL_DGRAM_LEN; ch->rx_max_udp_payload_size = qtx_args.mdpl; + ch->ping_deadline = ossl_time_infinite(); + ch->qtx = ossl_qtx_new(&qtx_args); if (ch->qtx == NULL) goto err;