From df0e9ba5acd771161aa615721ccf81c8dea21d7d Mon Sep 17 00:00:00 2001 From: ump45nose <52391318+ump45nose@users.noreply.github.com> Date: Wed, 21 Oct 2026 08:17:49 +0800 Subject: [PATCH] plugin/grpc_server: both limits accept zero, not only positive integers (#8660) The syntax block said POSITIVE_INTEGER for both options, but plugin/grpc_server/setup.go:51 and :67 reject only val < 0 with the message "must be a non-negative integer", plugin/grpc_server/setup_test.go:53-67 feeds "max_streams 0" and "max_connections 0" with shouldErr false, and README.md:22-23 itself says "Set to 0 for unbounded" for both. Signed-off-by: yuwk <1729065730@qq.com> --- plugin/grpc_server/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/grpc_server/README.md b/plugin/grpc_server/README.md index 1a19bb1f6..f85758411 100644 --- a/plugin/grpc_server/README.md +++ b/plugin/grpc_server/README.md @@ -14,8 +14,8 @@ This plugin can only be used once per gRPC listener block. ```txt grpc_server { - max_streams POSITIVE_INTEGER - max_connections POSITIVE_INTEGER + max_streams NON_NEGATIVE_INTEGER + max_connections NON_NEGATIVE_INTEGER } ```