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>
This commit is contained in:
ump45nose
2026-10-21 08:17:49 +08:00
committed by GitHub
parent c2acad2866
commit df0e9ba5ac

View File

@@ -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
}
```