Before we do anything the ping deadline is infinite
authorMatt Caswell <matt@openssl.org>
Tue, 13 Jun 2023 12:12:08 +0000 (13:12 +0100)
committerPauli <pauli@openssl.org>
Tue, 27 Jun 2023 23:53:22 +0000 (09:53 +1000)
Needed for tserver so that it the deadline isn't immediate before we've
accepted a connection.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21204)

ssl/quic/quic_channel.c

index 53d86eac98871f0110d244e8a0f514345110046c..dc16d69a8d598baa9c6b3e7a1bfb898d3df6e249 100644 (file)
@@ -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;