HttpClient 的默认最大连接数是多少

What is HttpClient's default maximum connections

HttpClient 是否使用与 HttpWebRequest 相同的 ServicePoint 连接限制?

谢谢

它使用相同的 ServicePointManager,所以答案是肯定的。

您可以根据需要以编程方式更改限制,请参阅 this

答案不完整。这取决于实施。 在 .net 核心中,应该使用 ServicePointManager.DefaultConnectionLimit setting is not used, HttpClientHandler.MaxConnectionsPerServer

https://blogs.msdn.microsoft.com/timomta/2017/10/23/controlling-the-number-of-outgoing-connections-from-httpclient-net-core-or-full-framework/