Question

I'm using a program to monitor the browser's activity, when I go to a site it makes an HTTP request over a TCP connection and I get the HTML file from the root directory of the server and then, it gets the image objects inside that HTML file but they're on a different directory and so it creates a new connection... Is this what HTTP/1.1 does when it is pipelining? Or is it doing this for some other reason? I've been reading the RFC 2616 and it doesn't mention why it creates these new connections.

Was it helpful?

Solution

It is doing that simultaneously so it can download all the images, javascripts, CSS files, etc., in parallel. Hence the new connections.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top