Amumu
Amumu

Reputation: 18552

Example of HTTP Pipelining vs no pipelining

Can someone give me a concrete example of HTTP with/without pipelining? I always think that both methods can handle multiple requests/responses, except for pipelining case, it only uses one socket, which means only one connection. In contrast, without pipelining, each socket (connection) is unique to each request, so it has the overhead of opening/closing socket. However, with high speed internet today, the difference is negligible. Is that true?

Upvotes: 0

Views: 979

Answers (1)

Julian Reschke
Julian Reschke

Reputation: 42027

No, even without pipelining, HTTP/1.1 will use a single socket for multiple requests; one after the other. And no, opening a new socket is expensive because it causes additional roundtrips.

Upvotes: 1

Related Questions