Speeding Up HttpWebRequests via ServicePointManager RRS feed

  • Question

  • User-186058747 posted

    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.

    Is this:

    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?

    Friday, April 4, 2014 12:22 AM


All replies