<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?

      ServicePointManager.DefaultConnectionLimit in .net core?(.net 核心中的 ServicePointManager.DefaultConnectionLimit?)
      <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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Migrate html helpers to ASP.NET Core(将 html 帮助程序迁移到 ASP.NET Core)
                Conditional validation in MVC.NET Core (RequiredIf)(MVC.NET Core 中的条件验证(RequiredIf))
                Is it possible to serve static files from outside the wwwroot folder?(是否可以从 wwwroot 文件夹外部提供静态文件?)
                Working with multiple resultset in .net core(在 .net 核心中使用多个结果集)
                Where all types for http headers gone in ASP.NET 5?(ASP.NET 5 中所有类型的 http 标头都去了哪里?)
                Failed to Authenticate HTTPS connection when attempting GET from WebAPI(尝试从 WebAPI 获取时无法验证 HTTPS 连接)
                    <tbody id='56xgM'></tbody>
                    <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>