From eff4aa54c13b3b5e2377339a52a6faa888d73e2c Mon Sep 17 00:00:00 2001 From: ump45nose <52391318+ump45nose@users.noreply.github.com> Date: Wed, 21 Oct 2026 09:11:28 +0800 Subject: [PATCH] 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> --- plugin/https3/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/https3/README.md b/plugin/https3/README.md index fed42fd7f..09be76d0d 100644 --- a/plugin/https3/README.md +++ b/plugin/https3/README.md @@ -14,8 +14,8 @@ This plugin can only be used once per HTTPS3 listener block. ```txt https3 { - max_streams POSITIVE_INTEGER - max_connections POSITIVE_INTEGER + max_streams NON_NEGATIVE_INTEGER + max_connections NON_NEGATIVE_INTEGER } ```