ServicePointManager.DefaultConnectionLimit at OnStart Workerole RRS feed

  • Question

  • Hi, I notice that there's a code

    // Set the maximum number of concurrent connections







    .DefaultConnectionLimit = 12

    Can somebody explain what this things mean? set max no of conncurent connection?

    Friday, October 1, 2010 9:27 AM


  • The following explanation is on the MSDN tips for Azure Storage performance improvements:

    This [DefaultConnectionLimit] is a notorious one that has affected many developers. By default, the value for this is 2.  This implies that only 2 concurrent connections can be maintained. This manifests itself as "underlying connection was closed..." when the number of concurrent requests is greater than 2. The default can be increased by setting the following in the application configuration file OR in code.

    You should read the post for additional information on the problem.

    Friday, October 1, 2010 3:01 PM