One slow response held nine fast ones hostage for a full second. That was the result of a small test run on a local server for this post: ten requests over a single HTTP/1.1 connection, one of them deliberately delayed by one second, and every quick request finished at about 1.01 seconds because it had to wait its turn. Over a single HTTP/2 connection, the same nine fast requests finished in about 20 milliseconds. The difference is multiplexing, the central change HTTP/2 made to how requests share a connection, and it explains why a lot of old web performance advice now works backwards.
The queue inside an HTTP/1.1 connection
One request at a time per connection
HTTP/1.1 sends requests and responses as plain text over a TCP connection, and a persistent connection carries them one after another. The response to the first request must finish before the response to the second can start. The IETF’s current HTTP/2 specification, RFC 9113, names the problem directly: HTTP/1.1 “still suffers from application-layer head-of-line blocking.”
Head-of-line blocking is a supermarket line with one register. A customer with a full cart at the front holds up everyone holding a single item behind them, even though the register could ring those items up in seconds.
The workaround browsers adopted
Browsers answered by opening several connections to the same server and spreading requests across them. Mozilla’s guide to connection management in HTTP/1.x describes HTTP/1.x connections as serializing requests and says browsers open several connections to each domain to send requests in parallel. Daniel Stenberg, the creator of curl, wrote in a post on connection coalescing that browsers typically use six connections per origin under HTTP/1.1.
Six lines is better than one, but each line still has the same weakness. A page with forty images from one host still queues several images per connection.

What multiplexing changes
Streams and frames
HTTP/2 keeps the same methods, status codes and headers but changes how they travel. Each request and response becomes a stream, which RFC 9113 defines as “an independent, bidirectional sequence of frames exchanged between the client and server.” Frames from many streams interleave on one TCP connection, and each frame carries the number of the stream it belongs to, so the receiver can reassemble them.
The specification’s abstract sums up the goal: HTTP/2 allows “multiple concurrent exchanges on the same connection” and adds field compression. Header compression matters more than it sounds, because the same cookies, user agent string and accept headers ride along with every request. RFC 9113’s introduction calls HTTP fields “often repetitive and verbose.”
How many at once
A server advertises how many streams a client may open at the same time through the SETTINGS_MAX_CONCURRENT_STREAMS setting. RFC 9113 says “It is recommended that this value be no smaller than 100.” One connection with a hundred open streams replaces six connections that each handle one request at a time.
A test you can run at home
The setup
The numbers at the top of this post came from a short Python experiment built for this post, using Python 3.13, the Hypercorn 0.18.0 server and the httpx 0.29.0 client with HTTP/2 support. Hypercorn speaks both HTTP/1.1 and cleartext HTTP/2 on the same port. The server app has one rule: any path that starts with /slow sleeps for one second before answering.
import asyncio
async def app(scope, receive, send):
if scope['type'] != 'http': return
if scope['path'].startswith('/slow'):
await asyncio.sleep(1.0)
body = scope['path'].encode()
await send({'type': 'http.response.start', 'status': 200,
'headers': [(b'content-length', str(len(body)).encode())]})
await send({'type': 'http.response.body', 'body': body})Start it with hypercorn app:app -b 127.0.0.1:8058. The client sends /slow first, waits 10 milliseconds, then fires nine /fast requests at once, and records when each one finishes. The connection limit is set with httpx.Limits(max_connections=1) for the single-connection runs.
The results
Each configuration ran ten times. The table gives the median finish time of the nine fast requests, taking the median across the ten runs.
| Configuration | Fast-request median | Range across 10 runs |
|---|---|---|
| HTTP/1.1, 1 connection | 1.013 s | 1.009 to 1.016 s |
| HTTP/1.1, 6 connections | 0.022 s | 0.018 to 0.023 s |
| HTTP/2, 1 connection | 0.020 s | 0.017 to 0.026 s |
The single HTTP/1.1 connection lined every fast request up behind the slow one. Six HTTP/1.1 connections hid the problem by giving the fast requests five other lanes. One HTTP/2 connection matched six HTTP/1.1 connections without opening any extra sockets.
When six lanes are not enough
A second round changed one thing: six slow requests went out first instead of one, then the same nine fast requests. That fills every lane a browser-style HTTP/1.1 setup has.
| Configuration, 6 slow + 9 fast | Fast-request median | Range across 10 runs |
|---|---|---|
| HTTP/1.1, 1 connection | 6.030 s | 6.027 to 6.037 s |
| HTTP/1.1, 6 connections | 1.014 s | 1.013 to 1.018 s |
| HTTP/2, 1 connection | 0.021 s | 0.017 to 1.015 s |
With one HTTP/1.1 connection the slow requests ran back to back and the fast ones waited six seconds. With six connections the fast ones waited a full second, because every lane was occupied. HTTP/2 finished them in about 20 milliseconds in seven of the ten runs. In the other three, the fast requests also waited about a second. That cause was not traced; the same kind of stall showed up in an early draft of the test before the 10 millisecond stagger was added, which points toward connection setup in the client rather than the protocol, but that is unconfirmed. A test that reports only its clean runs is an advertisement.
Checking the protocol with curl
curl can confirm which version a server is speaking. Against the same local server, curl -s -o /dev/null -w '%{http_version}\n' http://127.0.0.1:8058/a printed 1.1, and adding --http2-prior-knowledge printed 2. With prior knowledge on, curl --http2-prior-knowledge -w ' %{time_total}\n' http://127.0.0.1:8058/slow http://127.0.0.1:8058/fast reported 1.006 seconds for the slow path and 0.0017 seconds for the fast one. Public sites negotiate HTTP/2 over TLS instead, so for an HTTPS address the --http2-prior-knowledge flag is not needed.

Old tricks that now backfire
Domain sharding
Under HTTP/1.1, sites split assets across extra host names, such as static1 and static2, so browsers would open six connections per name. Mozilla’s domain sharding glossary entry explains that browsers limit active connections per domain and sharding spreads content across subdomains to get around the limit. Under HTTP/2 the trick costs a DNS lookup and a TLS handshake for every extra name while buying nothing. Mozilla’s connection management page states that domain sharding “is even detrimental to performance” with HTTP/2, and notes that most HTTP/2 implementations use connection coalescing to undo it.
Bundling and spriting
The same logic applied to concatenating every script into one file and packing icons into a single sprite sheet. Fewer requests meant fewer trips through the queue. With multiplexing, smaller files that cache independently can be the better trade, since changing one icon no longer invalidates one giant image. This one is a judgment call rather than a rule; very large numbers of tiny requests still carry per-request overhead.
Server push
HTTP/2 included server push, which let a server send resources before the browser asked for them. It did not survive contact with real sites. Chrome’s announcement removing push says support would be disabled by default in Chrome 106 and that only 1.25 percent of HTTP/2 sites used it. Chrome recommends 103 Early Hints instead, which sends hints the browser can act on without pushing bytes it may already have cached.
Where HTTP/2 still stalls
TCP is still underneath
Multiplexing fixes the queue inside HTTP. It does not fix the queue inside TCP. RFC 9113 says so plainly: “TCP head-of-line blocking is not addressed by this protocol.” TCP delivers bytes in order. When one packet is lost, every byte behind it waits for the retransmission, and that includes frames belonging to streams that had nothing to do with the lost packet.
On a clean local loopback, as in the test above, packet loss is close to zero and HTTP/2 looks flawless. On a crowded mobile link, one lost packet can briefly stall all hundred streams at once, where six separate HTTP/1.1 connections would have stalled only one of the six. The home test cannot show that effect, because loopback traffic never leaves the machine. Reproducing it would take a tool that drops packets on purpose, such as the Linux netem network emulator, whose loss option drops packets at a set rate.
The next step
That limit is why HTTP/3 moved off TCP onto QUIC, which runs over UDP and keeps streams independent at the transport layer. Chrome’s push announcement notes that push was not implemented in many HTTP/3 servers and clients, so the newer protocol mostly leaves that feature behind too. For most home labs and small sites the practical move is simpler: make sure the web server or CDN offers HTTP/2, drop domain sharding, and check the protocol column in the browser’s developer tools network panel, which shows h2 for HTTP/2.
The test files are short enough to retype in a few minutes. A slow endpoint, a fast endpoint and a connection limit of one make the queue visible in a way no diagram does.

Sources
- IETF, RFC 9113, “HTTP/2” (June 2022): https://www.rfc-editor.org/rfc/rfc9113.html
- MDN Web Docs, “Connection management in HTTP/1.x”: https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Connection_management_in_HTTP_1.x
- MDN Web Docs, “Domain sharding”: https://developer.mozilla.org/en-US/docs/Glossary/Domain_sharding
- Daniel Stenberg, “HTTP/2 connection coalescing” (August 18, 2016): https://daniel.haxx.se/blog/2016/08/18/http2-connection-coalescing/
- Linux man-pages, tc-netem(8): https://man7.org/linux/man-pages/man8/tc-netem.8.html
- Chrome for Developers, “Remove HTTP/2 Server Push from Chrome”: https://developer.chrome.com/blog/removing-push
