gpt4 book ai didi

.net - 使用通配符地址时,system.net connectionManagement maxConnection 是每个域还是共享?

转载 作者:行者123 更新时间:2023-12-04 13:37:25 25 4
gpt4 key购买 nike

配置文件的 system.net connectionManagement 部分中 maxconnection 配置值的文档让我感到困惑。当您在地址中使用通配符时 - 是每个主机的限制还是所有主机共享的限制(未明确列出)。

因此,使用 the documentation itself 中的示例- 但想象一下我们的应用程序调用了 3 个主机:

  • http://www.contoso.com
  • http://www.example1.com
  • http://www.example2.com

  • 使用 web.config 或 machine.config 部分,如下所示:

    <configuration>  
    <system.net>
    <connectionManagement>
    <add address="http://www.contoso.com" maxconnection="4" />
    <add address="*" maxconnection="2" />
    </connectionManagement>
    </system.net>
    </configuration>

    这是否意味着 example1 和 example2 有 2 个连接要在它们之间共享?或者 example1 和 example2 分别获得 2 个连接(它们之间有 4 个连接)?

    编辑:忘记了相关细节 - 我们正在使用 .Net 4.7 ASP.Net MVC 5(我相信 - 我是这个项目的新手)

    最佳答案

    对于 example1.com 和 example2.com 最多 2 个连接,对于 contoso.com 最多 4 个连接

    关于.net - 使用通配符地址时,system.net connectionManagement maxConnection 是每个域还是共享?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60959891/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com