<i id='0KMLV'><tr id='0KMLV'><dt id='0KMLV'><q id='0KMLV'><span id='0KMLV'><b id='0KMLV'><form id='0KMLV'><ins id='0KMLV'></ins><ul id='0KMLV'></ul><sub id='0KMLV'></sub></form><legend id='0KMLV'></legend><bdo id='0KMLV'><pre id='0KMLV'><center id='0KMLV'></center></pre></bdo></b><th id='0KMLV'></th></span></q></dt></tr></i><div id='0KMLV'><tfoot id='0KMLV'></tfoot><dl id='0KMLV'><fieldset id='0KMLV'></fieldset></dl></div>
      <bdo id='0KMLV'></bdo><ul id='0KMLV'></ul>
    1. <legend id='0KMLV'><style id='0KMLV'><dir id='0KMLV'><q id='0KMLV'></q></dir></style></legend>

      <tfoot id='0KMLV'></tfoot>

      <small id='0KMLV'></small><noframes id='0KMLV'>

      .net 核心中的 ServicePointManager.DefaultConnectionLimit?

      时间:2023-07-10
      <tfoot id='YN9vo'></tfoot>
    2. <i id='YN9vo'><tr id='YN9vo'><dt id='YN9vo'><q id='YN9vo'><span id='YN9vo'><b id='YN9vo'><form id='YN9vo'><ins id='YN9vo'></ins><ul id='YN9vo'></ul><sub id='YN9vo'></sub></form><legend id='YN9vo'></legend><bdo id='YN9vo'><pre id='YN9vo'><center id='YN9vo'></center></pre></bdo></b><th id='YN9vo'></th></span></q></dt></tr></i><div id='YN9vo'><tfoot id='YN9vo'></tfoot><dl id='YN9vo'><fieldset id='YN9vo'></fieldset></dl></div>
        <bdo id='YN9vo'></bdo><ul id='YN9vo'></ul>

          • <small id='YN9vo'></small><noframes id='YN9vo'>

            <legend id='YN9vo'><style id='YN9vo'><dir id='YN9vo'><q id='YN9vo'></q></dir></style></legend>

                  <tbody id='YN9vo'></tbody>

                本文介绍了.net 核心中的 ServicePointManager.DefaultConnectionLimit?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在将 web api 2 服务移植到 .net 核心,我在旧的 web api 服务中找到了这一行.

                ServicePointManager.DefaultConnectionLimit = int.MaxValue;

                这行代码增加了连接限制.我不知道它是用于计算机还是框架或只是应用程序.在阅读

                I am porting a web api 2 service to .net core and I found this line in my old web api service.

                ServicePointManager.DefaultConnectionLimit = int.MaxValue;
                

                This line of code increases the connection limit. I don't know if it's for the computer or the framework or just the application. And after reading this answer on stackoverflow, I also realise that setting it to int.max may not be the best idea. However I would still like to have control over it in my new .net core service.

                How do I modify/increase DefaultConnectionLimit in .net core. Also, How do I even know what's the default limit in .net core ? (if that's a valid question :) )

                解决方案

                In ASP.NET 5 apps, use WinHttpHandler.MaxConnectionsPerServer. Its default value is int.MaxValue.

                For details, see the .NET Portability Analyzer from the Visual Studio Gallery and WinHttpHandler.MaxConnectionsPerServer on MSDN.

                这篇关于.net 核心中的 ServicePointManager.DefaultConnectionLimit?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:如何在 C# 中使用 report.ExportToStream 函数 下一篇:asp.net core mvc 密码验证器

                相关文章

              • <tfoot id='56xgM'></tfoot>
                1. <legend id='56xgM'><style id='56xgM'><dir id='56xgM'><q id='56xgM'></q></dir></style></legend>
                2. <small id='56xgM'></small><noframes id='56xgM'>

                    <i id='56xgM'><tr id='56xgM'><dt id='56xgM'><q id='56xgM'><span id='56xgM'><b id='56xgM'><form id='56xgM'><ins id='56xgM'></ins><ul id='56xgM'></ul><sub id='56xgM'></sub></form><legend id='56xgM'></legend><bdo id='56xgM'><pre id='56xgM'><center id='56xgM'></center></pre></bdo></b><th id='56xgM'></th></span></q></dt></tr></i><div id='56xgM'><tfoot id='56xgM'></tfoot><dl id='56xgM'><fieldset id='56xgM'></fieldset></dl></div>
                    • <bdo id='56xgM'></bdo><ul id='56xgM'></ul>