Why HttpClient create only two connections for several requests for one domain at a time? For example, such a code
static string[] urls = new string[] { "http://site.com/a", "http://site.com/b", "http://site.com/c", "http://site.com/d", }; static void Main() { var hc = new HttpClient(); var list = new List<Task<string>>(); foreach (var item in urls) { list.Add(hc.GetStringAsync(item)); } Task.WaitAll(list.ToArray()); } because of which the whole process will be slower, as it is necessary to wait for the completion of any of the two requests to start the third
Although if you change requests to different domains
static string[] urls = new string[] { "http://sitea.com/", "http://siteb.com/", "http://sitec.com/", "http://sited.com/", }; then
Why is this happening, why only two at the same time, how to solve it?


HttpClient's then helps? - Qutrix