Domanda

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.

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top