CS FundamentalsHardGATE CS · Product company CS fundamentals

With HTTP/1.1 pipelining, a client sends requests for A (large, slow to generate), B and C on one connection without waiting. In what order must the server send the responses?

  1. A. B and C first, since they are ready sooner
  2. B. Any order, matched by request IDs
  3. C. Interleaved frames of A, B and C
  4. D. A, B, C, in request order, so B and C wait behind A (head-of-line blocking)

Correct answer: D. A, B, C, in request order, so B and C wait behind A (head-of-line blocking)

HTTP/1.1 has no request IDs, so responses must come back in the order the requests were sent. This head-of-line blocking is why pipelining was rarely enabled and why HTTP/2 introduced multiplexed streams with IDs.

More Computer Networks questions

Exams that ask this topic