From d25addf1072f2e3087b66c0e65d299e904f15671 Mon Sep 17 00:00:00 2001 From: "data-plane-api(Azure Pipelines)" Date: Tue, 4 Jan 2022 19:20:58 +0000 Subject: [PATCH] quic: normalize quic idle timeout and handshake timeout (#19214) Normalize QuicProtocolOptions::idle_timout and crypto_handshake_timeout to 1ms and 5s respectively if they are configured smaller than those. Signed-off-by: Dan Zhang Mirrored from https://github.com/envoyproxy/envoy @ 199d2f555161cec38b879ad9ca50e3027ff52541 --- envoy/config/listener/v3/quic_config.proto | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/envoy/config/listener/v3/quic_config.proto b/envoy/config/listener/v3/quic_config.proto index 9eadc05f..89dc34a0 100644 --- a/envoy/config/listener/v3/quic_config.proto +++ b/envoy/config/listener/v3/quic_config.proto @@ -30,11 +30,14 @@ message QuicProtocolOptions { core.v3.QuicProtocolOptions quic_protocol_options = 1; // Maximum number of milliseconds that connection will be alive when there is - // no network activity. 300000ms if not specified. + // no network activity. + // + // If it is less than 1ms, Envoy will use 1ms. 300000ms if not specified. google.protobuf.Duration idle_timeout = 2; // Connection timeout in milliseconds before the crypto handshake is finished. - // 20000ms if not specified. + // + // If it is less than 5000ms, Envoy will use 5000ms. 20000ms if not specified. google.protobuf.Duration crypto_handshake_timeout = 3; // Runtime flag that controls whether the listener is enabled or not. If not specified, defaults