服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-12-12 d156368e696303a761ad57558b12fe558d6fb66a
增加http并发连接数
已修改1个文件
9 ■■■■ 文件已修改
Tiger.Api/Program.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Tiger.Api/Program.cs
@@ -78,8 +78,13 @@
    
    builder.WebHost.UseKestrel(opt =>
    {
        opt.Limits.MinRequestBodyDataRate = null;
    });
        // 设置最大连接数
        opt.Limits.MaxConcurrentConnections = null;
        // 设置请求队列的长度
        opt.Limits.MaxConcurrentUpgradedConnections = null;
        opt.Limits.MinRequestBodyDataRate = null;
    });
    System.Net.ServicePointManager.DefaultConnectionLimit = 1024;
    if (isService)
    {