From e5ee1f861a7b3f222b8a3a90cd7e09a790f1cc62 Mon Sep 17 00:00:00 2001 From: ChenYi <296215406@outlook.com> Date: Mon, 10 Nov 2025 14:51:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=95=B0=E6=8D=AE=E6=8E=A5?= =?UTF-8?q?=E6=94=B6=E9=87=87=E7=94=A8StreamReader=E7=A8=B3=E5=A6=A5?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- host/JiShe.IoT.HttpApi.Host/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/host/JiShe.IoT.HttpApi.Host/Program.cs b/host/JiShe.IoT.HttpApi.Host/Program.cs index 93171d8..700abf9 100644 --- a/host/JiShe.IoT.HttpApi.Host/Program.cs +++ b/host/JiShe.IoT.HttpApi.Host/Program.cs @@ -44,6 +44,8 @@ public class Program //获取或设置请求正文的最小数据速率(字节/秒)。将此属性设置为NULL表示不应强制执行最小数据速率。////获取或设置请求正文的最小数据速率(字节/秒)。将此属性设置为NULL表示不应强制执行最小数据速率。 options.Limits.MinRequestBodyDataRate = null;//new MinDataRate(bytesPerSecond: 2048, gracePeriod: TimeSpan.FromSeconds(10)); + //options.Limits.MaxConcurrentConnections = 1000;//限制并发连接数,默认无限制 + }); builder.WebHost.UseUrls($"http://+:10500"); var app = builder.Build(); @@ -66,4 +68,4 @@ public class Program await Log.CloseAndFlushAsync(); } } -} \ No newline at end of file +} \ No newline at end of file