From 3bdf6cf17eb348ddf1066b8648bb77cf2bd68a73 Mon Sep 17 00:00:00 2001 From: "update-envoy[bot]" <135279899+update-envoy[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 17:06:46 +0000 Subject: [PATCH] gRPC: Implement max_receive_message_length in envoy gRPC (#32711) --------- Signed-off-by: tyxia Mirrored from https://github.com/envoyproxy/envoy @ c3f72258d482990a499c5203abcf3d1ae3fa4d58 --- envoy/config/core/v3/grpc_service.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/envoy/config/core/v3/grpc_service.proto b/envoy/config/core/v3/grpc_service.proto index e42ffc26..471f9165 100644 --- a/envoy/config/core/v3/grpc_service.proto +++ b/envoy/config/core/v3/grpc_service.proto @@ -49,6 +49,12 @@ message GrpcService { // Currently only supported for xDS gRPC streams. // If not set, xDS gRPC streams default base interval:500ms, maximum interval:30s will be applied. RetryPolicy retry_policy = 3; + + // Maximum gRPC message size that is allowed to be received. + // If a message over this limit is received, the gRPC stream is terminated with the RESOURCE_EXHAUSTED error. + // This limit is applied to individual messages in the streaming response and not the total size of streaming response. + // Defaults to 0, which means unlimited. + google.protobuf.UInt32Value max_receive_message_length = 4; } // [#next-free-field: 9]