Does ServicePointManager.DefaultConnectionLimit (“the property”) control the outgoing connections or incoming connections?
I have an ASP.NET application where I specify the property on start up in global.asax.
For example, I have set it to 100 but I’m finding that I can have 200 concurrent connections to it. These are async requests coming into IAsyncHttpHandler.
Can someone explain the property?
ServicePointManagerhas nothing to do with ASP.NET. ItsDefaultConnectionLimitcan be used for setting the allowed number of outgoing connections when connecting to a URI (e.g. usingWebRequestorWebClient).And it applies only to a specific host. So, if you set it to 100, that means you can have 100 connections to
http://stackoverflow.comand another 100 connections tohttp://svick.org.