Last post Apr 10, 2014 10:11 PM by Shawn - MSFT
Apr 04, 2014 12:22 AM|kevorkian|LINK
I have a web service that can send out around a dozen asynchronous web requests every second. I am in the process of optimizing them to ensure I keep the post time down as much as possible, but I'm confused as to something.
ServicePointManager.DefaultConnectionLimit = connectionLimit;
The same as adding this to your web.config?
<add address="*" maxconnection="80"/>
I've read they are the same, but it seems to me that the DefaultConnectionLimit should be a property in the //Settings/ServicePointManager node of System.Net. Why isn't it?
Apr 04, 2014 12:13 PM|kevorkian|LINK
Is this the roght place for the post?
Apr 10, 2014 10:11 PM|Shawn - MSFT|LINK
ConnectionManagementElement.MaxConnection Property Gets or sets the maximum number of connections that can
be made to a remote computer. This element can be used in the application configuration file or the machine configuration file (Machine.config).
DefaultConnectionLimit property sets the default maximum number of concurrent connections that the
ServicePointManager object assigns to the
ConnectionLimit property when creating
Changing the DefaultConnectionLimit property has no effect on existing
ServicePoint objects; it affects only
ServicePoint objects that are initialized after the change. If the value of this property has not been set either directly or through configuration, the value defaults
to the constant DefaultPersistentConnectionLimit.
Besides, for more information, you could refer to the following links: