mirror of
https://github.com/coredns/coredns.git
synced 2026-10-24 11:15:43 -04:00
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:
@@ -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
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user