asp.NET connection number setting method

  • 2020-05-19 04:30:13
  • OfStack

Do pressure test or request a specific domain name server, with 1 hour connection by default. Limit the NET framework, need to set to work, I'm through windows count to see to the performance of pressure test 1 straight not really submitted, only to find the problem, the main parameters as follows: the System. Net. ServicePointManager. DefaultConnectionLimit, you need to set up the relevant parameters are as follows:

System. Net. ServicePointManager. DefaultConnectionLimit defaults to 2 when windows programs, not setting values, is likely to be more 1 point, but not more than 100, can set the value is bigger, but if set small, is to set the value after the shall prevail

System. Net. ServicePointManager. 12 * N DefaultConnectionLimit website leamer contends, N number for CPU logic

. This parameter can be set, System Net. ServicePointManager. MaxServicePoints default, 0 is set ServicePoint values, but I've never used, 0 "when does not limit.


Related articles: