What is the difference between HTTP/1.1 pipelining and HTTP/2 multiplexing?

后端 未结 3 1589
滥情空心
滥情空心 2020-12-08 14:35

Is it because it requires the responses to be made to client in the order of request that causes the head of line blocking problem in HTTP 1.1?

If each request take

3条回答
  •  渐次进展
    2020-12-08 15:19

    HTTP/1.1 without pipelining: Each HTTP request over the TCP connection must be responded to before the next request can be made.

    HTTP/1.1 with pipelining: Each HTTP request over the TCP connection may be made immediately without waiting for the previous request's response to return. The responses will come back in the same order.

    HTTP/2 multiplexing: Each HTTP request over the TCP connection may be made immediately without waiting for the previous response to come back. The responses may come back in any order.

提交回复
热议问题