From ed98bdfea817ebf48a9ada4324ec11a4bd87050f Mon Sep 17 00:00:00 2001 From: "data-plane-api(Azure Pipelines)" Date: Mon, 27 Jun 2022 13:40:51 +0000 Subject: [PATCH] file system buffer: Prevent 0 byte memory buffers (#21714) Signed-off-by: Andre Vehreschild Mirrored from https://github.com/envoyproxy/envoy @ 9832927d2505e98d65a1b92e6633e9cfee2e68c3 --- .../filters/http/file_system_buffer/v3/file_system_buffer.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envoy/extensions/filters/http/file_system_buffer/v3/file_system_buffer.proto b/envoy/extensions/filters/http/file_system_buffer/v3/file_system_buffer.proto index 480aa821..3e557935 100644 --- a/envoy/extensions/filters/http/file_system_buffer/v3/file_system_buffer.proto +++ b/envoy/extensions/filters/http/file_system_buffer/v3/file_system_buffer.proto @@ -71,7 +71,7 @@ message StreamConfig { // The amount stored in the memory buffer before buffering to disk. // If unset in route, vhost and listener config, defaults to a hardcoded value of 1MiB - google.protobuf.UInt64Value memory_buffer_bytes_limit = 2; + google.protobuf.UInt64Value memory_buffer_bytes_limit = 2 [(validate.rules).uint64 = {gt: 0}]; // The maximum storage (excluding memory) to be buffered in this filter. // If unset in route, vhost and listener config, defaults to a hardcoded value of 32MiB