cryptomb: fix poll delay being set to zero if it is shorter than 1 ms in the config (#21392)

* Change API to only allow poll delay values greater than or equal to 1ms and create tests.

Signed-off-by: Ville Pihlava <ville.pihlava@intel.com>

Mirrored from https://github.com/envoyproxy/envoy @ cfb7b64116283e27d848b2721973513ffc0937cd
pull/626/head
data-plane-api(Azure Pipelines) 3 years ago
parent ced936ff3c
commit 8cf9f08596
  1. 4
      contrib/envoy/extensions/private_key_providers/cryptomb/v3alpha/cryptomb.proto

@ -37,9 +37,9 @@ message CryptoMbPrivateKeyMethodConfig {
// queue is not filled before the delay has expired, the requests
// already in the queue are processed, even if the queue is not full.
// In effect, this value controls the balance between latency and
// throughput. The duration needs to be set to a non-zero value.
// throughput. The duration needs to be set to a value greater than or equal to 1 millisecond.
google.protobuf.Duration poll_delay = 2 [(validate.rules).duration = {
required: true
gt {}
gte {nanos: 1000000}
}];
}

Loading…
Cancel
Save