문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top