When a stress test is performed or the server requests a specific domain name, the connection volume at the same time is by default. the. NET Framework is limited. It takes effect only after being set. I found this problem only after checking that the stress test has not been submitted. The main setting parameter is: System. net. servicePointManager. defaultConnectionLimit:
System. net. servicePointManager. defaultConnectionLimit is set to 2 by default in a windows program. If the value is not set, it may be a little larger, but it will not exceed 100. You can set this value to a greater value, but if it is set to a smaller value, the configured value prevails.
System. Net. ServicePointManager. DefaultConnectionLimit is regarded as 12 * N, and N is the number of CPU logic.
This parameter may also be set. The default value of System. Net. ServicePointManager. MaxServicePoints is 0, which is the value of ServicePoint, but it is never used. If it is 0, it indicates no restriction.