Controlling the Number of Outgoing Connections From HttpClient (.Net Core or Full Framework)

added by DotNetKicks
10/24/2017 12:53:13 PM

1 Kicks, 333 Views

Although there are references to this all over the web for full framework, I had trouble finding it for .Net Core, so I thought I'd note it for others that may be searching. On .Net Full framework, you can control the number of outgoing client connections by setting ServicePointManager.DefaultConnectionLimit to the desired number.