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 <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)
This commit is contained in:
Matt Caswell 2023-06-13 13:12:08 +01:00 committed by Pauli
parent fb4a2bba71
commit 27195689a8

View 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;