Skip to content

Commit

Permalink
Before we do anything the ping deadline is infinite
Browse files Browse the repository at this point in the history
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 #21204)
  • Loading branch information
mattcaswell authored and paulidale committed Jun 27, 2023
1 parent fb4a2bb commit 2719568
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ssl/quic/quic_channel.c
Expand Up @@ -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;
Expand Down

0 comments on commit 2719568

Please sign in to comment.