i wonder why is that .net framework 4 System.Thread implementation only allows 2 TCP connection to be establish even I had initiated 10 threads to connect and fetch data?
i tried it on duo core and 4 core machines and both resulted the same as i uses netstat to read the connections.
It has nothing to do with
Thread, you would get the same behavior when using one thread and asynchronous operations.There is a limit of 2 connections per remote host by default. This value can be changed by changing
ServicePointManager.DefaultConnectionLimit. There is no limit for connections to different hosts by default, which can be changed by settingServicePointManager.MaxServicePoints.