html - Chrome TCP HTTP connection -


imagine scenario:

  • there client on chrome, c
  • there webserver, w
  • on webserver html file, wh, image wi

c wants visit webpage on w. tcp connection opened. webserver sends wh c. c sees there image on wh, wi...

now question comes: client establish new tcp connection request image? or send new psh-ack?


seconds question: differ between browsers?

the client requests image using http get request. can either on same connection, or can open new connection. if client starts parsing page while it's downloading, use new connection 2 files can download concurrently. , if sees more image tags, can open additional connections this. keep overloading server, well-behaved browsers have limit on number of concurrent connections they'll open same server, typically around 4.

if first downloads whole wh, can reuse original connection request image. if there multiple images, open separate connections each (up aforementioned limit) can downloaded in parallel.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -