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 <danzh@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ 199d2f555161cec38b879ad9ca50e3027ff52541
pull/626/head
data-plane-api(Azure Pipelines) 3 years ago
parent 33d2f5211c
commit d25addf107
  1. 7
      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

Loading…
Cancel
Save