plugin/https3: the limits accept zero, not only positive integers (#8659)

The syntax block advertised POSITIVE_INTEGER for both options, but plugin/https3/setup.go:50 and :66 reject only val < 0, the parser errors say "must be a non-negative integer", plugin/https3/setup_test.go:36-43 accepts "max_streams 0" with shouldErr false, and README.md:22-23 itself tells the reader to "Set to 0". plugin/https/README.md:17-18 already uses NON_NEGATIVE_INTEGER for the same pair.

Signed-off-by: yuwk <1729065730@qq.com>
This commit is contained in:
ump45nose
2026-10-21 09:11:28 +08:00
committed by GitHub
parent df0e9ba5ac
commit eff4aa54c1

View File

@@ -14,8 +14,8 @@ This plugin can only be used once per HTTPS3 listener block.
```txt ```txt
https3 { https3 {
max_streams POSITIVE_INTEGER max_streams NON_NEGATIVE_INTEGER
max_connections POSITIVE_INTEGER max_connections NON_NEGATIVE_INTEGER
} }
``` ```